Wikipedia:Syntax highlighting
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
edit- meta:Community Tech/Wikitext editor syntax highlighting – documentation for the wiki-code syntax highlighter available on a highlighter marker button , to the left of "Advanced" in some toolbars (not to be confused with the pencil icon on the far right, which will switch you to the visual editing mode). If "Use the wikitext mode inside the visual editor, instead of a different wikitext editor" (also called the 2017 wikitext editor) is enabled at Special:Preferences#mw-prefsection-editing then it is available on the menu icon .
- mw:Extension:CodeEditor – syntax highlighting for JavaScript, CSS and modules available on a button
< >
at the left of the toolbar for these page types - mw:User:Remember the dot/Syntax highlighter – documentation for the wiki-code syntax highlighter available as "Syntax highlighter" under Special:Preferences#mw-prefsection-gadgets
- User:Cacycle/wikEd – an editor which includes syntax highlighting, available as "wikEd" under Special:Preferences#mw-prefsection-gadgets
- Help:Text editor support – how to use an external editor (many of which do syntax highlighting) to edit Wikipedia pages
Syntax highlighting of output for readers
edit- Wikipedia:WikiProject Computer science/Manual of style § Code samples – how to present examples of code and markup to readers
- mw:Extension:SyntaxHighlight – documentation for the
<syntaxhighlight ...>...</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
edit- 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.