Category:Pages with syntax highlighting errors

From OpenStreetMap Wiki
Jump to: navigation, 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.
    If you don't know which one to use, try lang="html5" for wikicode, or lang="properties" for examples of use of templates with one line per parameter
    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). 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>