Category:Pages with syntax highlighting errors
Jump to navigation
Jump to search
The following pages display source code whose syntax should be enhanced using <syntaxhighlight>...</syntaxhighlight>
(or <source>...</source>
) but there was an error while parsing it:
- Most often, a suitable identification of the programming language or syntax is missing in the
lang="..."
parameter of the tag (e.g.<syntaxhighlight lang="XML">...</syntaxhighlight>
or<syntaxhighlight lang="HTML5">...</syntaxhighlight>
), or the specified programming language is not supported.- The list of supported languages is actually maintained separately of MediaWiki itself, in its "syntaxhighlight" extension using the GeSHi library.
- GeSHI itself was updated and simplified to use Pygments (it was tested with versions 1.6 and 2.0.2, this last version being provided by default with the GeSHI extension for MediaWiki), with the language lexers from Pygments, so now the MediaWiki extension only maintains a list of additional aliases to remap some languages to those known by Pygments (which supports more than 300 languages).
- If you don't know which one to use, try:
lang="html"
for generic wikicode, orlang="properties"
for examples of use of templates with one line per parameter, orlang="cpp"
for Overpass API queries (and similar OSM query languages) (maybe Template:OverpassTurboExample suits your needs even better), orlang="bash"
for installation shell scripts or commands on Linux/Unix.
- Alternatively
lang="text"
and no highlighting will be performed (but it will render mostly like standard preformatted text in<pre>...</pre>
which performs better).
- In some cases, the source code is just too large to allow full expansion of highlighting styles in this wiki (limit reached on tag content size, now the size limit for the unformatted source code fragment is 100 KB). In these cases, the embedded source code will just be rendered as a plain preformated paragraph without any internal formatting. Most probably such large source code (or data) should better be hosted on an external open source (open data) repository (such as GitHub) where it will more easily viewed, updated and downloaded than on this wiki. If you want to keep it on this wiki, consider changing the surrounding tags into
<pre>...</pre>
.
Pages in category "Pages with syntax highlighting errors"
The following 107 pages are in this category, out of 107 total.
A
- Add `addr:place` to addresses with no corresponding street name
- User:Aharvey/OverpassQueries
- User:ArnaudJ59/Lambersart
- Austria/Radwege/ref-cleanup
- JA:Automated edits/gyotoku810/remove trailing semicolons of voltage=* in Japan
- Automated edits/Habi
- Automated edits/kubahahaha - bot account/Banks in Poland
- Automated edits/Os-emmer
C
D
F
G
I
K
M
O
- Ohio/Statistics
- User:Oisín
- Talk:One feature, one OSM element
- OpenFireMap/Installation
- OpenHistoricalMap/Overpass
- OSM2GTFS for Accra - user manual
- Osm2pgsql/benchmarks
- Zh-hans:Osmosis
- Overpass API/GDPR
- Overpass API/Installation
- Overpass API/Overpass API by Example
- Overpass API/status
- Talk:Overpass turbo
- Overpass Ultra/Extensions
- Overpass Ultra/Styling
P
S
- User:SafwatHalaby/scripts/gtfs
- User talk:SafwatHalaby/scripts/gtfs
- User:Sangonzag
- Santa Maria, Rio Grande do Sul/Transportes
- User:Schoschi
- Sophox
- JA:Sophox
- Proposal:Spring:name
- Template:Static row numbers
- Template:Static row numbers/doc
- Proposal talk:Street parking revision
- Street-art
- User:Sushifan/Passstraßen in Österreich