Template:SyntaxHighlight header

From Mainlining Wiki
Jump to navigation Jump to search

Header that can be placed before a <syntaxhighlight> tag to e.g. show a filename or block title.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texttext 1

Text to place in the header.

Unbalanced wikitextrequired

Example

{{SyntaxHighlight header|foo.dts}}
<syntaxhighlight lang="dts" line>
/dts-v1/;

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	
	my_node: node1@1000 {
		compatible = "vendor,foo";
		reg = <0x1000 0x54>;
		vendor,bar-factor = <0x2a>;
	};
};
</syntaxhighlight>
foo.dts
/dts-v1/;

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	
	my_node: node1@1000 {
		compatible = "vendor,foo";
		reg = <0x1000 0x54>;
		vendor,bar-factor = <0x2a>;
	};
};