Wikipedia:Syntax highlighting

{{shortcut|WP:SYNTAX}}

Syntax highlighting is a feature to display source code in different colors and fonts to indicate the structure to readers.

Wikipedia:Syntax highlighting or WP:SYNTAX may refer to:

Syntax highlighting of wiki-code for editors

{{shortcut|WP:HILITE}}

{{Multiple image

|width = 450

|direction = vertical

|image1 = Turn on the syntax highlighter in 2010 wikitext editor.png

|caption1 = Toggling syntax highlighting in the older editor

|image2 = Turn on the syntax highlighter in 2017 wikitext editor.png

|caption2 = Toggling syntax highlighting in the newer editor}}

Syntax highlighting of output for readers

  • {{section link|Wikipedia:WikiProject Computer science/Manual of style#Code samples}} – how to present examples of code and markup to readers
  • Extension:SyntaxHighlight – documentation for the <syntaxhighlight> markup that can be used to provide nicely formatted code examples
  • :Category:Pages with syntax highlighting errors – tracking category for pages using this feature incorrectly

Syntax in general

  • Help:Wikitext – basic info on the MediaWiki markup syntax used in Wikipedia's pages ("wiki-markup")
  • Wikipedia:Manual of Style – Wikipedia's internal style guide for writing articles, including many points on English syntax, punctuation, etc.

{{project disambiguation}}