Help:Script Samples: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) |
||
Line 174:
== Syntax Highlighting ==
Demo of color coding using HTML markup and displaying line numbers:
If a programming language is not used the language can be specified as '''text''', also the highlight attribute can be set to highlight lines of code:<br><br>▼
<code><syntaxhighlight lang="html4strict" line class="inline"></code><syntaxhighlight lang="html4strict" line class="inline">
<table align=center style="background: ivory;color:maroon;font-style:italic;font-family:arial;font-weight:bold;font-size:10pt;">
Line 190:
<br><br>
▲If a programming language is not used the language can be specified as '''text''', also the highlight attribute can be set to highlight lines of code:<br><br>
<code><syntaxhighlight lang="text" highlight="8-11" class="scroll"></code>
<syntaxhighlight lang="text" highlight="8-11" class="scroll">
| |||