Jump to content

Template:Java/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PJTraill (talk | contribs) at 17:01, 30 December 2014 (Add Template Data). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

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

ParameterDescriptionTypeStatus
Java code1

The Java code to be formatted

Unknownrequired