Template:Java

From Wikipedia, the free encyclopedia
Jump to: navigation, search

{{{1}}}

Template documentation[view] [edit] [history] [purge]

Usage[edit]

This template serves to format sample Java code (fairly) uniformly, performing some syntax highlighting and adding the page to the hidden category "Articles with example Java code".

It uses {{#tag:source|{{{1}}}|lang=Java|enclose="none"}} 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 Readable and Serializable inconsistently, namely black and blue respectively.


Format and tag Java code

Template parameters

Parameter Description Type Status
Java code 1

The Java code to be formatted

Default
empty
Example
empty
Auto value
empty
Unknown required