<syntaxhighlight>

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]

<syntaxhighlight lang="Python">
var points = 3
print(points)
</syntaxhighlight>

Other bits[edit | edit source]

  • Add "line" to add line numbers at the beginning of each line.
    • Add "start=x" to make the line numbers start at x.
  • Add "highlight=""" to highlight one or more lines, seperated by ",". "1,3-5" highlights the lines 1, 3, 4 and 5.

See also[edit | edit source]