Content deleted Content added
Created as near-stub |
Add Template Data |
||
Line 4:
This template serves to format sample Java code (fairly) uniformly, performing some [[syntax highlighting]] and adding the page to the [[Wikipedia:hidden category|hidden category]] "[[:Category:Articles with example Java code|Articles with example Java code]]".
It uses <code><nowiki>{{#tag:source|{{{1}}}|lang=Java|enclose="none"}}</nowiki></code> to mark the code as such. '' ''' To be added: ''' Implications of that, how syntax is highlighted ''
As at 2014-12-30 it appears to format {{Java|Readable}} and {{Java|Serializable}} inconsistently, namely black and blue respectively.
Line 12:
}}</includeonly>
<templatedata>
{
"description": "Format and tag Java code",
"params": {
"1": {
"description": "The Java code to be formatted",
"required": true,
"label": "Java code"
}
}
}
</templatedata>
|