CINXE.COM
Template:Syntaxhighlight - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Template:Syntaxhighlight - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"5bf8e783-0350-40c6-b903-27558667e84b","wgCanonicalNamespace":"Template","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":10,"wgPageName":"Template:Syntaxhighlight","wgTitle":"Syntaxhighlight","wgCurRevisionId":1212192381,"wgRevisionId":1212192381,"wgArticleId":27507281,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Wikipedia semi-protected templates","Article message templates with missing parameters","Text-specific formatting and function templates"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Template:Syntaxhighlight","wgRelevantArticleId":27507281,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia" ,"wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":300,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q15122568","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false, "wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.templateData":"ready","ext.templateData.images":"ready","jquery.tablesorter.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","jquery.tablesorter","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp", "ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.pygments%2CtemplateData%2CwikimediaBadges%7Cext.templateData.images%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cjquery.tablesorter.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Template:Syntaxhighlight - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Template:Syntaxhighlight"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Template:Syntaxhighlight"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-10 ns-subject page-Template_Syntaxhighlight rootpage-Template_Syntaxhighlight skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Template%3ASyntaxhighlight" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Template%3ASyntaxhighlight" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Template%3ASyntaxhighlight" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Template%3ASyntaxhighlight" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Usage</span> </div> </a> <ul id="toc-Usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Supported_languages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Supported_languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Supported languages</span> </div> </a> <ul id="toc-Supported_languages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Examples" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Examples"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Examples</span> </div> </a> <button aria-controls="toc-Examples-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Examples subsection</span> </button> <ul id="toc-Examples-sublist" class="vector-toc-list"> <li id="toc-Inline_code" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Inline_code"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Inline code</span> </div> </a> <ul id="toc-Inline_code-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Necessary_unescaping_of_source_code_from_another_page" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Necessary_unescaping_of_source_code_from_another_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>Necessary unescaping of source code from another page</span> </div> </a> <ul id="toc-Necessary_unescaping_of_source_code_from_another_page-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-TemplateData" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#TemplateData"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>TemplateData</span> </div> </a> <ul id="toc-TemplateData-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Template</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Syntaxhighlight</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 22 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-22" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">22 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-af mw-list-item"><a href="https://af.wikipedia.org/wiki/Sjabloon:Sintaksisuitligting" title="Sjabloon:Sintaksisuitligting – Afrikaans" lang="af" hreflang="af" data-title="Sjabloon:Sintaksisuitligting" data-language-autonym="Afrikaans" data-language-local-name="Afrikaans" class="interlanguage-link-target"><span>Afrikaans</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%82%D8%A7%D9%84%D8%A8:%D9%83%D9%88%D8%AF_%D9%85%D9%84%D9%88%D9%86" title="قالب:كود ملون – Arabic" lang="ar" hreflang="ar" data-title="قالب:كود ملون" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-bar mw-list-item"><a href="https://bar.wikipedia.org/wiki/Vorlog:Syntaxhighlight" title="Vorlog:Syntaxhighlight – Bavarian" lang="bar" hreflang="bar" data-title="Vorlog:Syntaxhighlight" data-language-autonym="Boarisch" data-language-local-name="Bavarian" class="interlanguage-link-target"><span>Boarisch</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Mod%C3%A8le:Syntaxhighlight" title="Modèle:Syntaxhighlight – French" lang="fr" hreflang="fr" data-title="Modèle:Syntaxhighlight" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gu mw-list-item"><a href="https://gu.wikipedia.org/wiki/%E0%AA%A2%E0%AA%BE%E0%AA%82%E0%AA%9A%E0%AB%8B:Syntaxhighlight" title="ઢાંચો:Syntaxhighlight – Gujarati" lang="gu" hreflang="gu" data-title="ઢાંચો:Syntaxhighlight" data-language-autonym="ગુજરાતી" data-language-local-name="Gujarati" class="interlanguage-link-target"><span>ગુજરાતી</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%ED%8B%80:Syntaxhighlight" title="틀:Syntaxhighlight – Korean" lang="ko" hreflang="ko" data-title="틀:Syntaxhighlight" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Templat:Syntaxhighlight" title="Templat:Syntaxhighlight – Indonesian" lang="id" hreflang="id" data-title="Templat:Syntaxhighlight" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Template:Syntaxhighlight" title="Template:Syntaxhighlight – Japanese" lang="ja" hreflang="ja" data-title="Template:Syntaxhighlight" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-pa mw-list-item"><a href="https://pa.wikipedia.org/wiki/%E0%A8%AB%E0%A8%B0%E0%A8%AE%E0%A8%BE:Syntaxhighlight" title="ਫਰਮਾ:Syntaxhighlight – Punjabi" lang="pa" hreflang="pa" data-title="ਫਰਮਾ:Syntaxhighlight" data-language-autonym="ਪੰਜਾਬੀ" data-language-local-name="Punjabi" class="interlanguage-link-target"><span>ਪੰਜਾਬੀ</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Syntaxhighlight" title="Шаблон:Syntaxhighlight – Russian" lang="ru" hreflang="ru" data-title="Шаблон:Syntaxhighlight" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B7%83%E0%B7%90%E0%B6%9A%E0%B7%92%E0%B6%BD%E0%B7%8A%E0%B6%BD:Syntaxhighlight" title="සැකිල්ල:Syntaxhighlight – Sinhala" lang="si" hreflang="si" data-title="සැකිල්ල:Syntaxhighlight" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Template:Syntaxhighlight" title="Template:Syntaxhighlight – Simple English" lang="en-simple" hreflang="en-simple" data-title="Template:Syntaxhighlight" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Syntaxhighlight" title="Шаблон:Syntaxhighlight – Serbian" lang="sr" hreflang="sr" data-title="Шаблон:Syntaxhighlight" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%B5%E0%AE%BE%E0%AE%B0%E0%AF%8D%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81%E0%AE%B0%E0%AF%81:Syntaxhighlight" title="வார்ப்புரு:Syntaxhighlight – Tamil" lang="ta" hreflang="ta" data-title="வார்ப்புரு:Syntaxhighlight" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-shn mw-list-item"><a href="https://shn.wikipedia.org/wiki/%E1%80%91%E1%82%85%E1%80%99%E1%80%BA%E1%80%B8%E1%80%95%E1%80%9C%E1%80%B5%E1%80%90%E1%80%BA%E1%82%89:Syntaxhighlight" title="ထႅမ်းပလဵတ်ႉ:Syntaxhighlight – Shan" lang="shn" hreflang="shn" data-title="ထႅမ်းပလဵတ်ႉ:Syntaxhighlight" data-language-autonym="ၽႃႇသႃႇတႆး " data-language-local-name="Shan" class="interlanguage-link-target"><span>ၽႃႇသႃႇတႆး </span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Syntaxhighlight" title="మూస:Syntaxhighlight – Telugu" lang="te" hreflang="te" data-title="మూస:Syntaxhighlight" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Syntaxhighlight" title="แม่แบบ:Syntaxhighlight – Thai" lang="th" hreflang="th" data-title="แม่แบบ:Syntaxhighlight" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Syntaxhighlight" title="Шаблон:Syntaxhighlight – Tajik" lang="tg" hreflang="tg" data-title="Шаблон:Syntaxhighlight" data-language-autonym="Тоҷикӣ" data-language-local-name="Tajik" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Syntaxhighlight" title="Шаблон:Syntaxhighlight – Ukrainian" lang="uk" hreflang="uk" data-title="Шаблон:Syntaxhighlight" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/B%E1%BA%A3n_m%E1%BA%ABu:Syntaxhighlight" title="Bản mẫu:Syntaxhighlight – Vietnamese" lang="vi" hreflang="vi" data-title="Bản mẫu:Syntaxhighlight" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Template:Syntaxhighlight" title="Template:Syntaxhighlight – Cantonese" lang="yue" hreflang="yue" data-title="Template:Syntaxhighlight" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Template:Syntaxhighlight" title="Template:Syntaxhighlight – Chinese" lang="zh" hreflang="zh" data-title="Template:Syntaxhighlight" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q15122568#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-template" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Template:Syntaxhighlight" title="View the template [c]" accesskey="c"><span>Template</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Template_talk:Syntaxhighlight" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Template:Syntaxhighlight"><span>Read</span></a></li><li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&action=edit" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Template:Syntaxhighlight"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&action=edit"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Template:Syntaxhighlight" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Template:Syntaxhighlight" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&oldid=1212192381" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Template:Syntaxhighlight&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTemplate%3ASyntaxhighlight"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTemplate%3ASyntaxhighlight"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-electronpdfservice-sidebar-portlet-heading" class="vector-menu mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Template%3ASyntaxhighlight&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Template:Syntaxhighlight" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/Template:Code" hreflang="en"><span>MediaWiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiversity mw-list-item"><a href="https://en.wikiversity.org/wiki/Template:Syntaxhighlight" hreflang="en"><span>Wikiversity</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q15122568" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> <div id="mw-indicator-pp-default" class="mw-indicator"><div class="mw-parser-output"><span typeof="mw:File"><a href="/wiki/Wikipedia:Protection_policy#semi" title="This high-risk template is permanently semi-protected to prevent vandalism"><img alt="Permanently protected template" src="//upload.wikimedia.org/wikipedia/en/thumb/1/1b/Semi-protection-shackle.svg/20px-Semi-protection-shackle.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/1/1b/Semi-protection-shackle.svg/30px-Semi-protection-shackle.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/1/1b/Semi-protection-shackle.svg/40px-Semi-protection-shackle.svg.png 2x" data-file-width="512" data-file-height="512" /></a></span></div></div> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"><pre><span></span>{{{1}}} </pre></div> <style data-mw-deduplicate="TemplateStyles:r1237875617">.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .documentation,html.skin-theme-clientpref-night .mw-parser-output .documentation-metadata{background-color:#0b1e1c}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .documentation,html.skin-theme-clientpref-os .mw-parser-output .documentation-metadata{background-color:#0b1e1c}}</style><div class="documentation-container" role="complementary" aria-labelledby="documentation-heading"> <div class="documentation"> <div class="documentation-startbox"> <span class="documentation-heading" id="documentation-heading"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800" /></span></span> Template documentation</span><span class="mw-editsection-like plainlinks">[<a href="/wiki/Template:Syntaxhighlight/doc" title="Template:Syntaxhighlight/doc">view</a>] [<a href="/wiki/Special:EditPage/Template:Syntaxhighlight/doc" title="Special:EditPage/Template:Syntaxhighlight/doc">edit</a>] [<a href="/wiki/Special:PageHistory/Template:Syntaxhighlight/doc" title="Special:PageHistory/Template:Syntaxhighlight/doc">history</a>] [<a href="/wiki/Special:Purge/Template:Syntaxhighlight" title="Special:Purge/Template:Syntaxhighlight">purge</a>]</span></div> <style data-mw-deduplicate="TemplateStyles:r1238436933">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-style" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/7/74/Ambox_warning_yellow.svg/40px-Ambox_warning_yellow.svg.png" decoding="async" width="40" height="35" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/7/74/Ambox_warning_yellow.svg/60px-Ambox_warning_yellow.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/7/74/Ambox_warning_yellow.svg/80px-Ambox_warning_yellow.svg.png 2x" data-file-width="386" data-file-height="334" /></span></span></td><td class="mbox-text">Due to a server limit of <b>500</b> "<a href="/wiki/Help:Template_limits#Expensive_parser_function_calls" title="Help:Template limits">expensive parser function</a>" calls <small>(e.g. <a href="https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifexist" class="extiw" title="mw:Help:Extension:ParserFunctions">#ifexist:</a>, <a href="https://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata" class="extiw" title="mw:Help:Magic words">PAGESIZE:</a>, and <a href="https://www.mediawiki.org/wiki/Help:Magic_words#Statistics" class="extiw" title="mw:Help:Magic words">PAGESINCATEGORY:</a>)</small>, this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in <a href="/wiki/Category:Pages_with_too_many_expensive_parser_function_calls" title="Category:Pages with too many expensive parser function calls">Category:Pages with too many expensive parser function calls</a>. <small>(<i><a href="/wiki/Template:Expensive" title="Template:Expensive">further information</a></i>)</small></td></tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r1252059228">.mw-parser-output .module-shortcutboxplain{float:right;margin:0 0 0 1em;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-base,#fff);padding:0.3em 0.6em 0.2em 0.6em;text-align:center;font-size:85%}.mw-parser-output .module-shortcutboxleft{float:left;margin:0 1em 0 0}.mw-parser-output .module-shortcutlist{display:inline-block;border-bottom:1px solid var(--border-color-base,#a2a9b1);margin-bottom:0.2em}.mw-parser-output .module-shortcutboxplain ul{font-weight:bold}.mw-parser-output .module-shortcutanchordiv{position:relative;top:-3em}.mw-parser-output li .module-shortcutanchordiv{float:right}.mw-parser-output .mbox-imageright .module-shortcutboxplain{padding:0.4em 1em 0.4em 1em;line-height:1.3;margin:0}</style><div class="module-shortcutanchordiv"><span id="sxhl"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist"><a href="/wiki/Wikipedia:Shortcut" title="Wikipedia:Shortcut">Shortcut</a></div><style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style><div class="plainlist"><ul><li>{{<span class="plainlinks"><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template:Sxhl&redirect=no">sxhl</a></span>}}</li></ul></div></div> <p>Simple wrapper around the <a href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight" class="extiw" title="mw:Extension:SyntaxHighlight">syntaxhighlight</a> tag to show <a href="/wiki/Syntax_highlighting" title="Syntax highlighting">syntax-highlighted</a> text. Unlike syntaxhighlight, text that does not fit on the screen will be <a href="/wiki/Text_wrap" class="mw-redirect" title="Text wrap">wrapped</a>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2></div> <p><code>{{<a class="mw-selflink selflink">Syntaxhighlight</a>|<i>code</i>|<i>lang</i>}}</code> </p> <ul><li><i>code</i> will become the contents of the syntax highlighted block.</li> <li>Use <code class="tpl-para" style="word-break:break-word;">|lang=wikitext</code> for Mediawiki or <a href="/wiki/Help:Wikitext" title="Help:Wikitext">wikitext</a> markup. Other supported languages are listed below.</li> <li>The <code class="nowrap" style=""><syntaxhighlight></code> tag used by this template is <a href="/wiki/Wikipedia:EXPENSIVE" class="mw-redirect" title="Wikipedia:EXPENSIVE">WP:EXPENSIVE</a>, so, if used on a page with 500 or more 'expensive' parser functions, subsequent instances of this template after the 500th expensive function use on that page will always be rendered as unhighlighted <code class="nowrap" style=""><code>...</code></code> blocks (without syntax highlighting) instead of syntax-highlighted <code class="nowrap" style=""><syntaxhighlight>...</syntaxhighlight></code> blocks.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Supported_languages">Supported languages</h2></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="https://www.mediawiki.org/wiki/Extension:_SyntaxHighlight#Supported_languages" class="extiw" title="mw:Extension: SyntaxHighlight">mw: Extension: SyntaxHighlight § Supported_languages</a></div> <style data-mw-deduplicate="TemplateStyles:r1251242444">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><table class="plainlinks metadata ambox mbox-small-left ambox-notice" role="presentation" style="width: auto;"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/1/1d/Information_icon4.svg/20px-Information_icon4.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/1/1d/Information_icon4.svg/30px-Information_icon4.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/1/1d/Information_icon4.svg/40px-Information_icon4.svg.png 2x" data-file-width="620" data-file-height="620" /></span></span></td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This list is <a href="/wiki/Wikipedia:WikiProject_Lists#Incomplete_lists" title="Wikipedia:WikiProject Lists">incomplete</a>; you can help by <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template:Syntaxhighlight&action=edit">adding missing items</a>.</div></td></tr></tbody></table> <table class="wikitable" style="float:left"> <tbody><tr> <th>Code</th> <th>Language </th></tr> <tr> <td><code>4cs</code></td> <td>4CS </td></tr> <tr> <td><code>6502acme</code></td> <td><a href="/wiki/MOS_Technology_6502" title="MOS Technology 6502">MOS 6502</a> (6510) ACME Cross Assembler </td></tr> <tr> <td><code>6502kickass</code></td> <td><a href="/wiki/MOS_Technology_6502" title="MOS Technology 6502">MOS 6502</a> (6510) Kick Assembler </td></tr> <tr> <td><code>6502tasm</code></td> <td><a href="/wiki/MOS_Technology_6502" title="MOS Technology 6502">MOS 6502</a> (6510) TASM/64TASS </td></tr> <tr> <td><code>68000devpac</code></td> <td><a href="/wiki/Motorola_68000" title="Motorola 68000">Motorola 68000</a> HiSoft Devpac ST 2 Assembler </td></tr> <tr> <td><code>abap</code></td> <td><a href="/wiki/ABAP" title="ABAP">ABAP</a> </td></tr> <tr> <td><code>actionscript</code></td> <td><a href="/wiki/ActionScript" title="ActionScript">ActionScript</a> </td></tr> <tr> <td><code>actionscript3</code></td> <td><a href="/wiki/ActionScript" title="ActionScript">ActionScript</a>3 </td></tr> <tr> <td><code>ada</code></td> <td><a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a> </td></tr> <tr> <td><code>algol68</code></td> <td><a href="/wiki/ALGOL_68" title="ALGOL 68">ALGOL 68</a> </td></tr> <tr> <td><code>apache</code></td> <td><a href="/wiki/Apache_HTTP_Server" title="Apache HTTP Server">Apache configuration</a> </td></tr> <tr> <td><code>applescript</code></td> <td><a href="/wiki/AppleScript" title="AppleScript">AppleScript</a> </td></tr> <tr> <td><code>apt_sources</code></td> <td><a href="/wiki/Advanced_Packaging_Tool" class="mw-redirect" title="Advanced Packaging Tool">APT sources</a> </td></tr> <tr> <td><code>arm</code></td> <td><a href="/wiki/ARM_architecture_family" title="ARM architecture family">ARM</a> Assembler </td></tr> <tr> <td><code>asm</code></td> <td><a href="/wiki/Assembly_language" title="Assembly language">Assembly</a> </td></tr> <tr> <td><code>asp</code></td> <td><a href="/wiki/Active_Server_Pages" title="Active Server Pages">Active Server Pages</a> (ASP) </td></tr> <tr> <td><code>asymptote</code></td> <td><a href="/wiki/Asymptote_(vector_graphics_language)" title="Asymptote (vector graphics language)">Asymptote</a> </td></tr> <tr> <td><code>autoconf</code></td> <td><a href="/wiki/Autoconf" title="Autoconf">Autoconf</a> </td></tr> <tr> <td><code>autohotkey</code></td> <td><a href="/wiki/AutoHotkey" title="AutoHotkey">AutoHotkey</a> </td></tr> <tr> <td><code>autoit</code></td> <td><a href="/wiki/AutoIt" title="AutoIt">AutoIt</a> </td></tr> <tr> <td><code>avisynth</code></td> <td><a href="/wiki/AviSynth" title="AviSynth">AviSynth</a> </td></tr> <tr> <td><code>awk</code></td> <td><a href="/wiki/AWK" title="AWK">AWK</a> </td></tr> <tr> <td><code>bascomavr</code></td> <td>BASCOM AVR </td></tr> <tr> <td><code>bash</code></td> <td><a href="/wiki/Bash_(Unix_shell)" title="Bash (Unix shell)">Bash</a> </td></tr> <tr> <td><code>basic4gl</code></td> <td><a href="/wiki/Basic4GL" title="Basic4GL">Basic4GL</a> </td></tr> <tr> <td><code>bf</code></td> <td><a href="/wiki/Brainfuck" title="Brainfuck">Brainfuck</a> </td></tr> <tr> <td><code>bibtex</code></td> <td><a href="/wiki/BibTeX" title="BibTeX">BibTeX</a> </td></tr> <tr> <td><code>blitzbasic</code></td> <td><a href="/wiki/Blitz_BASIC" title="Blitz BASIC">Blitz BASIC</a> </td></tr> <tr> <td><code>bnf</code></td> <td><a href="/wiki/Backus%E2%80%93Naur_form" title="Backus–Naur form">Backus–Naur form</a> </td></tr> <tr> <td><code>boo</code></td> <td><a href="/wiki/Boo_(programming_language)" title="Boo (programming language)">Boo</a> </td></tr> <tr> <td><code>c</code></td> <td><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a> </td></tr> <tr> <td><code>c_loadrunner</code></td> <td>C Loadrunner </td></tr> <tr> <td><code>c_mac</code></td> <td>C (Mac) </td></tr> <tr> <td><code>caddcl</code></td> <td>AutoCAD <a href="/wiki/Dialog_Control_Language" title="Dialog Control Language">Dialog Control Language</a> (DCL) </td></tr> <tr> <td><code>cadlisp</code></td> <td><a href="/wiki/AutoLISP" title="AutoLISP">AutoLISP</a> </td></tr> <tr> <td><code>cfdg</code></td> <td>CFDG </td></tr> <tr> <td><code>cfm</code></td> <td><a href="/wiki/ColdFusion_Markup_Language" title="ColdFusion Markup Language">ColdFusion Markup Language</a> </td></tr> <tr> <td><code>chaiscript</code></td> <td><a href="/w/index.php?title=ChaiScript&action=edit&redlink=1" class="new" title="ChaiScript (page does not exist)">ChaiScript</a> </td></tr> <tr> <td><code>cil</code></td> <td><a href="/wiki/Common_Intermediate_Language" title="Common Intermediate Language">Common Intermediate Language</a> (CIL) </td></tr> <tr> <td><code>clojure</code></td> <td><a href="/wiki/Clojure" title="Clojure">Clojure</a> </td></tr> <tr> <td><code>clp</code></td> <td><a href="/wiki/Control_Language" title="Control Language">Control Language</a> Program </td></tr> <tr> <td><code>cmake</code></td> <td><a href="/wiki/CMake" title="CMake">CMake</a> </td></tr> <tr> <td><code>cobol</code></td> <td><a href="/wiki/COBOL" title="COBOL">COBOL</a> </td></tr> <tr> <td><code>coffeescript</code></td> <td><a href="/wiki/CoffeeScript" title="CoffeeScript">CoffeeScript</a> </td></tr> <tr> <td><code>cpp</code></td> <td><a href="/wiki/C%2B%2B" title="C++">C++</a> </td></tr> <tr> <td><code>cpp-qt</code></td> <td><a href="/wiki/Qt_(software)" title="Qt (software)">C++ (Qt toolkit)</a> </td></tr> <tr> <td><code>csharp</code></td> <td><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a> </td></tr> <tr> <td><code>css</code></td> <td><a href="/wiki/Cascading_Style_Sheets" class="mw-redirect" title="Cascading Style Sheets">Cascading Style Sheets</a> (CSS) </td></tr> <tr> <td><code>cuesheet</code></td> <td><a href="/wiki/Cue_sheet_(computing)" title="Cue sheet (computing)">Cue sheet</a> </td></tr> <tr> <td><code>d</code></td> <td><a href="/wiki/D_(programming_language)" title="D (programming language)">D</a> </td></tr> <tr> <td><code>dcl</code></td> <td><a href="/wiki/DIGITAL_Command_Language" title="DIGITAL Command Language">DIGITAL Command Language</a> </td></tr> <tr> <td><code>dcpu16</code></td> <td><a href="/wiki/DCPU-16" class="mw-redirect" title="DCPU-16">DCPU-16</a> </td></tr> <tr> <td><code>dcs</code></td> <td>Data Conversion System </td></tr> <tr> <td><code>delphi</code></td> <td><a href="/wiki/Delphi_(software)" title="Delphi (software)">Delphi</a> </td></tr> <tr> <td><code>diff</code></td> <td><a href="/wiki/Diff" title="Diff">Diff</a> </td></tr> <tr> <td><code>div</code></td> <td>DIV </td></tr> <tr> <td><code>dos</code></td> <td><a href="/wiki/DOS_batch_file" class="mw-redirect" title="DOS batch file">DOS batch file</a> </td></tr> <tr> <td><code>dot</code></td> <td><a href="/wiki/DOT_(graph_description_language)" title="DOT (graph description language)">DOT</a> </td></tr> <tr> <td><code>e</code></td> <td><a href="/wiki/E_(programming_language)" title="E (programming language)">E</a> </td></tr> <tr> <td><code>ecmascript</code></td> <td><a href="/wiki/ECMAScript" title="ECMAScript">ECMAScript</a> </td></tr> <tr> <td><code>eiffel</code></td> <td><a href="/wiki/Eiffel_(programming_language)" title="Eiffel (programming language)">Eiffel</a> </td></tr> <tr> <td><code>email</code></td> <td>Email (mbox \ eml \ RFC format) </td></tr> <tr> <td><code>epc</code></td> <td>Enerscript </td></tr> <tr> <td><code>erlang</code></td> <td><a href="/wiki/Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a> </td></tr> <tr> <td><code>euphoria</code></td> <td><a href="/wiki/Euphoria_(programming_language)" title="Euphoria (programming language)">Euphoria</a> </td></tr> <tr> <td><code>f1</code></td> <td>Formula One </td></tr> <tr> <td><code>fo</code></td> <td>FO </td></tr> <tr> <td><code>fortran</code></td> <td><a href="/wiki/Fortran" title="Fortran">Fortran</a> </td></tr> <tr> <td><code>freebasic</code></td> <td><a href="/wiki/FreeBASIC" title="FreeBASIC">FreeBASIC</a> </td></tr> <tr> <td><code>freeswitch</code></td> <td><a href="/wiki/FreeSWITCH" title="FreeSWITCH">FreeSWITCH</a> </td></tr> <tr> <td><code>fsharp</code></td> <td><a href="/wiki/Fsharp" class="mw-redirect" title="Fsharp">Fsharp</a> </td></tr> <tr> <td><code>gambas</code></td> <td><a href="/wiki/Gambas_programming_language" class="mw-redirect" title="Gambas programming language">Gambas</a> </td></tr> <tr> <td><code>gdb</code></td> <td><a href="/wiki/GDB" class="mw-redirect" title="GDB">GDB</a> </td></tr> <tr> <td><code>genero</code></td> <td>Genero </td></tr> <tr> <td><code>genie</code></td> <td>Genie </td></tr> <tr> <td><code>gettext</code></td> <td><a href="/wiki/Gettext" title="Gettext">gettext</a> </td></tr> <tr> <td><code>glsl</code></td> <td><a href="/wiki/GLSL" class="mw-redirect" title="GLSL">OpenGL Shading Language (GLSL)</a> </td></tr> <tr> <td><code>gml</code></td> <td><a href="/wiki/Game_Maker_Language" class="mw-redirect" title="Game Maker Language">Game Maker Language (GML)</a> </td></tr> <tr> <td><code>gnuplot</code></td> <td><a href="/wiki/Gnuplot" title="Gnuplot">gnuplot</a> </td></tr> <tr> <td><code>go</code></td> <td><a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a> </td></tr> <tr> <td><code>groovy</code></td> <td><a href="/wiki/Groovy_(programming_language)" class="mw-redirect" title="Groovy (programming language)">Groovy</a> </td></tr> <tr> <td><code>gwbasic</code></td> <td><a href="/wiki/GW-BASIC" title="GW-BASIC">GW-BASIC</a> </td></tr> <tr> <td><code>haskell</code></td> <td><a href="/wiki/Haskell" title="Haskell">Haskell</a> </td></tr> <tr> <td><code>haxe</code></td> <td><a href="/wiki/Haxe" title="Haxe">Haxe</a> </td></tr> <tr> <td><code>hicest</code></td> <td>HicEst </td></tr> <tr> <td><code>hq9plus</code></td> <td>HQ9+ </td></tr> <tr> <td><code>html</code></td> <td><a href="/wiki/HTML" title="HTML">HTML</a> </td></tr> <tr> <td><code>icon</code></td> <td><a href="/wiki/Icon_(programming_language)" title="Icon (programming language)">Icon</a> </td></tr> <tr> <td><code>idl</code></td> <td><a href="/wiki/Universal_Network_Objects" title="Universal Network Objects">Uno IDL</a> </td></tr> <tr> <td><code>ini</code></td> <td><a href="/wiki/INI_file" title="INI file">INI</a> </td></tr> <tr> <td><code>inno</code></td> <td><a href="/wiki/Inno_Setup" title="Inno Setup">Inno</a> </td></tr> <tr> <td><code>intercal</code></td> <td><a href="/wiki/INTERCAL" title="INTERCAL">INTERCAL</a> </td></tr> <tr> <td><code>io</code></td> <td><a href="/wiki/Io_(programming_language)" title="Io (programming language)">Io</a> </td></tr> <tr> <td><code>j</code></td> <td><a href="/wiki/J_(programming_language)" title="J (programming language)">J</a> </td></tr> <tr> <td><code>java</code></td> <td><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a> </td></tr> <tr> <td><code>java5</code></td> <td><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java(TM) 2 Platform Standard Edition 5.0 </a> </td></tr> <tr> <td><code>javascript</code></td> <td><a href="/wiki/JavaScript" title="JavaScript">JavaScript</a> </td></tr> <tr> <td><code>jcl</code></td> <td><a href="/wiki/Job_Control_Language" title="Job Control Language">Job Control Language</a> </td></tr> <tr> <td><code>kixtart</code></td> <td><a href="/wiki/KiXtart" title="KiXtart">KiXtart</a> </td></tr> <tr> <td><code>klonec</code></td> <td>Klone C </td></tr> <tr> <td><code>klonecpp</code></td> <td>Klone C++ </td></tr> <tr> <td><code>latex</code></td> <td><a href="/wiki/LaTeX" title="LaTeX">LaTeX</a> </td></tr> <tr> <td><code>lb</code></td> <td><a href="/wiki/Liberty_BASIC" title="Liberty BASIC">Liberty BASIC</a> </td></tr> <tr> <td><code>ldif</code></td> <td><a href="/wiki/LDAP_Data_Interchange_Format" title="LDAP Data Interchange Format">LDAP Data Interchange Format</a> </td></tr> <tr> <td><code>lisp</code></td> <td><a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a> </td></tr> <tr> <td><code>llvm</code></td> <td><a href="/wiki/LLVM" title="LLVM">LLVM</a> </td></tr> <tr> <td><code>locobasic</code></td> <td><a href="/wiki/Locomotive_BASIC" title="Locomotive BASIC">Locomotive BASIC</a> </td></tr> <tr> <td><code>logtalk</code></td> <td><a href="/wiki/Logtalk" title="Logtalk">Logtalk</a> </td></tr> <tr> <td><code>lolcode</code></td> <td><a href="/wiki/LOLCODE" title="LOLCODE">LOLCODE</a> </td></tr> <tr> <td><code>lotusformulas</code></td> <td><a href="/wiki/Formula_language" title="Formula language">Formula language</a> </td></tr> <tr> <td><code>lotusscript</code></td> <td><a href="/wiki/LotusScript" title="LotusScript">LotusScript</a> </td></tr> <tr> <td><code>lscript</code></td> <td><a href="/w/index.php?title=LScript&action=edit&redlink=1" class="new" title="LScript (page does not exist)">LightWave 3D</a> </td></tr> <tr> <td><code>lsl2</code></td> <td><a href="/wiki/Linden_Scripting_Language" class="mw-redirect" title="Linden Scripting Language">Linden Scripting Language</a> </td></tr> <tr> <td><code>lua</code></td> <td><a href="/wiki/Lua_(programming_language)" title="Lua (programming language)">Lua</a> </td></tr> <tr> <td><code>magiksf</code></td> <td><a href="/wiki/Magik_(programming_language)" title="Magik (programming language)">Magik</a> </td></tr> <tr> <td><code>m68k</code></td> <td><a href="/wiki/Motorola_68000" title="Motorola 68000">Motorola 68000 Assembler</a> </td></tr> <tr> <td><code>make</code></td> <td><a href="/wiki/Make_(software)" title="Make (software)">make</a> </td></tr> <tr> <td><code>mapbasic</code></td> <td><a href="/wiki/MapBasic" title="MapBasic">MapBasic</a> </td></tr> <tr> <td><code>matlab</code></td> <td><a href="/wiki/MATLAB" title="MATLAB">MATLAB M</a> </td></tr> <tr> <td><code>mirc</code></td> <td><a href="/wiki/MIRC_scripting_language" title="MIRC scripting language">mIRC scripting language</a> </td></tr> <tr> <td><code>mmix</code></td> <td><a href="/wiki/MMIX" title="MMIX">MMIX</a> </td></tr> <tr> <td><code>modula2</code></td> <td><a href="/wiki/Modula-2" title="Modula-2">Modula-2</a> </td></tr> <tr> <td><code>modula3</code></td> <td><a href="/wiki/Modula-3" title="Modula-3">Modula-3</a> </td></tr> <tr> <td><code>mpasm</code></td> <td><a href="/wiki/PIC_microcontroller" class="mw-redirect" title="PIC microcontroller">Microchip Assembler</a> </td></tr> <tr> <td><code>mxml</code></td> <td><a href="/wiki/MXML" title="MXML">MXML</a> </td></tr> <tr> <td><code>mysql</code></td> <td><a href="/wiki/MySQL" title="MySQL">MySQL</a> </td></tr> <tr> <td><code>nagios</code></td> <td><a href="/wiki/Nagios" title="Nagios">Nagios</a> </td></tr> <tr> <td><code>netrexx</code></td> <td><a href="/wiki/NetRexx" title="NetRexx">NetRexx</a> </td></tr> <tr> <td><code>newlisp</code></td> <td><a href="/wiki/NewLISP" title="NewLISP">NewLISP</a> </td></tr> <tr> <td><code>nsis</code></td> <td><a href="/wiki/Nullsoft_Scriptable_Install_System" class="mw-redirect" title="Nullsoft Scriptable Install System">Nullsoft Scriptable Install System</a> (NSIS) </td></tr> <tr> <td><code>oberon2</code></td> <td><a href="/wiki/Oberon-2" title="Oberon-2">Oberon-2</a> </td></tr> <tr> <td><code>objc</code></td> <td><a href="/wiki/Objective-C" title="Objective-C">Objective-C</a> </td></tr> <tr> <td><code>objeck</code></td> <td><a href="/w/index.php?title=Objeck_(programming_language)&action=edit&redlink=1" class="new" title="Objeck (programming language) (page does not exist)">Objeck</a> </td></tr> <tr> <td><code>ocaml</code></td> <td><a href="/wiki/OCaml" title="OCaml">OCaml</a> </td></tr> <tr> <td><code>ocaml-brief</code></td> <td><a href="/wiki/OCaml" title="OCaml">OCaml</a> </td></tr> <tr> <td><code>ocl</code></td> <td><a href="/wiki/Operational_Control_Language" title="Operational Control Language">Operational Control Language</a> </td></tr> <tr> <td><code>octave</code></td> <td><a href="/wiki/GNU_Octave" title="GNU Octave">Octave</a> </td></tr> <tr> <td><code>oobas</code></td> <td><a href="/wiki/OpenOffice_Basic" title="OpenOffice Basic">OpenOffice Basic</a> </td></tr> <tr> <td><code>oorexx</code></td> <td><a href="/wiki/Object_REXX" title="Object REXX">Object REXX</a> </td></tr> <tr> <td><code>oracle11</code></td> <td><a href="/wiki/PL/SQL" title="PL/SQL">Oracle 11 SQL</a> </td></tr> <tr> <td><code>oracle8</code></td> <td><a href="/wiki/PL/SQL" title="PL/SQL">Oracle 8 SQL</a> </td></tr> <tr> <td><code>oxygene</code></td> <td><a href="/wiki/Oxygene_(programming_language)" title="Oxygene (programming language)">Oxygene</a> </td></tr> <tr> <td><code>oz</code></td> <td><a href="/wiki/Oz_(programming_language)" title="Oz (programming language)">Oz</a> </td></tr> <tr> <td><code>parasail</code></td> <td><a href="/wiki/ParaSail_(programming_language)" title="ParaSail (programming language)">ParaSail</a> </td></tr> <tr> <td><code>parigp</code></td> <td><a href="/wiki/PARI/GP" title="PARI/GP">PARI/GP</a> </td></tr> <tr> <td><code>pascal</code></td> <td><a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a> </td></tr> <tr> <td><code>pcre</code></td> <td><a href="/wiki/Perl_Compatible_Regular_Expressions" title="Perl Compatible Regular Expressions">Perl Compatible Regular Expressions</a> </td></tr> <tr> <td><code>per</code></td> <td>per </td></tr> <tr> <td><code>perl</code></td> <td><a href="/wiki/Perl" title="Perl">Perl</a> </td></tr> <tr> <td><code>perl6</code></td> <td><a href="/wiki/Raku_(programming_language)" title="Raku (programming language)">Raku</a> </td></tr> <tr> <td><code>pf</code></td> <td><a href="/wiki/PF_(firewall)" title="PF (firewall)">PF</a> </td></tr> <tr> <td><code>php</code></td> <td><a href="/wiki/PHP" title="PHP">PHP</a> </td></tr> <tr> <td><code>php-brief</code></td> <td><a href="/wiki/PHP" title="PHP">PHP</a> </td></tr> <tr> <td><code>pic16</code></td> <td><a href="/wiki/PIC_microcontroller" class="mw-redirect" title="PIC microcontroller">PIC assembly language</a> </td></tr> <tr> <td><code>pike</code></td> <td><a href="/wiki/Pike_(programming_language)" title="Pike (programming language)">Pike</a> </td></tr> <tr> <td><code>pixelbender</code></td> <td><a href="/wiki/Adobe_Pixel_Bender" title="Adobe Pixel Bender">Pixel Bender</a> </td></tr> <tr> <td><code>pli</code></td> <td><a href="/wiki/PL/I" title="PL/I">PL/I</a> </td></tr> <tr> <td><code>plsql</code></td> <td><a href="/wiki/PL/SQL" title="PL/SQL">PL/SQL</a> </td></tr> <tr> <td><code>postgresql</code></td> <td><a href="/wiki/PostgreSQL" title="PostgreSQL">PostgreSQL</a> </td></tr> <tr> <td><code>povray</code></td> <td><a href="/wiki/POV-Ray" title="POV-Ray">Persistence of Vision Raytracer</a> </td></tr> <tr> <td><code>powerbuilder</code></td> <td><a href="/wiki/PowerBuilder" title="PowerBuilder">PowerBuilder</a> </td></tr> <tr> <td><code>powershell</code></td> <td><a href="/wiki/PowerShell" title="PowerShell">PowerShell</a> </td></tr> <tr> <td><code>proftpd</code></td> <td><a href="/wiki/ProFTPD" title="ProFTPD">ProFTPD</a> </td></tr> <tr> <td><code>progress</code></td> <td><a href="/wiki/OpenEdge_Advanced_Business_Language" title="OpenEdge Advanced Business Language">OpenEdge Advanced Business Language</a> </td></tr> <tr> <td><code>prolog</code></td> <td><a href="/wiki/Prolog" title="Prolog">Prolog</a> </td></tr> <tr> <td><code>properties</code></td> <td><a href="/wiki/.properties" title=".properties">Properties file</a> </td></tr> <tr> <td><code>providex</code></td> <td>ProvideX </td></tr> <tr> <td><code>purebasic</code></td> <td><a href="/wiki/PureBasic" title="PureBasic">PureBasic</a> </td></tr> <tr> <td><code>pycon</code></td> <td><a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> </td></tr> <tr> <td><code>pys60</code></td> <td><a href="/wiki/Python_for_S60" title="Python for S60">PyS60</a> </td></tr> <tr> <td><code>python</code></td> <td><a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> </td></tr> <tr> <td><code>q</code></td> <td><a href="/wiki/Q_(equational_programming_language)" class="mw-redirect" title="Q (equational programming language)">Q</a> </td></tr> <tr> <td><code>qbasic</code></td> <td><a href="/wiki/QBasic" title="QBasic">QBasic/QuickBASIC</a> </td></tr> <tr> <td><code>ragel</code></td> <td><a href="/wiki/Ragel" title="Ragel">Ragel</a> </td></tr> <tr> <td><code>rails</code></td> <td><a href="/wiki/Ruby_on_Rails" title="Ruby on Rails">Rails</a> </td></tr> <tr> <td><code>rebol</code></td> <td><a href="/wiki/Rebol" title="Rebol">Rebol</a> </td></tr> <tr> <td><code>reg</code></td> <td><a href="/wiki/Windows_Registry" title="Windows Registry">Windows Registry</a> </td></tr> <tr> <td><code>rexx</code></td> <td><a href="/wiki/Rexx" title="Rexx">Rexx</a> </td></tr> <tr> <td><code>robots</code></td> <td><a href="/wiki/Robots_exclusion_standard" class="mw-redirect" title="Robots exclusion standard">robots.txt</a> </td></tr> <tr> <td><code>rpg</code></td> <td><a href="/wiki/IBM_RPG" title="IBM RPG">RPG</a> </td></tr> <tr> <td><code>rpgii</code></td> <td><a href="/wiki/IBM_RPG_II" title="IBM RPG II">RPG II</a> </td></tr> <tr> <td><code>rpgiii</code></td> <td><a href="/wiki/IBM_RPG_III" title="IBM RPG III">RPG III</a> </td></tr> <tr> <td><code>rpg400</code></td> <td><a href="/wiki/IBM_RPG" title="IBM RPG">RPG/400</a> </td></tr> <tr> <td><code>rpgiv</code></td> <td><a href="/wiki/IBM_RPG" title="IBM RPG">RPG IV</a> </td></tr> <tr> <td><code>rpmspec</code></td> <td><a href="/wiki/RPM_Package_Manager" title="RPM Package Manager">RPM Spec files</a> </td></tr> <tr> <td><code>rsplus</code></td> <td><a href="/wiki/R_(programming_language)" title="R (programming language)">R</a> </td></tr> <tr> <td><code>ruby</code></td> <td><a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a> </td></tr> <tr> <td><code>sas</code></td> <td><a href="/wiki/SAS_(software)" title="SAS (software)">SAS</a> </td></tr> <tr> <td><code>scala</code></td> <td><a href="/wiki/Scala_(programming_language)" title="Scala (programming language)">Scala</a> </td></tr> <tr> <td><code>scheme</code></td> <td><a href="/wiki/Scheme_(programming_language)" title="Scheme (programming language)">Scheme</a> </td></tr> <tr> <td><code>scilab</code></td> <td><a href="/wiki/Scilab" title="Scilab">Scilab</a> </td></tr> <tr> <td><code>sdlbasic</code></td> <td><a href="/wiki/SdlBasic" title="SdlBasic">SdlBasic</a> </td></tr> <tr> <td><code>smalltalk</code></td> <td><a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a> </td></tr> <tr> <td><code>smarty</code></td> <td><a href="/wiki/Smarty_(template_engine)" title="Smarty (template engine)">Smarty</a> </td></tr> <tr> <td><code>spark</code></td> <td><a href="/wiki/SPARK_(programming_language)" title="SPARK (programming language)">SPARK</a> </td></tr> <tr> <td><code>sparql</code></td> <td><a href="/wiki/SPARQL" title="SPARQL">SPARQL</a> </td></tr> <tr> <td><code>sql</code></td> <td><a href="/wiki/SQL" title="SQL">SQL</a> </td></tr> <tr> <td><code>stonescript</code></td> <td>StoneScript (Scripting language for ShiVa3D) </td></tr> <tr> <td><code>systemverilog</code></td> <td><a href="/wiki/SystemVerilog" title="SystemVerilog">SystemVerilog</a> </td></tr> <tr> <td><code>tcl</code></td> <td><a href="/wiki/Tcl" title="Tcl">Tcl</a> </td></tr> <tr> <td><code>teraterm</code></td> <td><a href="/wiki/Tera_Term" title="Tera Term">Tera Term</a> </td></tr> <tr> <td><code>text</code></td> <td><a href="/wiki/Plain_text" title="Plain text">Plain text</a> </td></tr> <tr> <td><code>thinbasic</code></td> <td>thinBasic </td></tr> <tr> <td><code>tsql</code></td> <td><a href="/wiki/Transact-SQL" title="Transact-SQL">Transact-SQL</a> </td></tr> <tr> <td><code>typoscript</code></td> <td><a href="/wiki/TYPO3" title="TYPO3">TypoScript</a> </td></tr> <tr> <td><code>unicon</code></td> <td><a href="/wiki/Unicon_(programming_language)" title="Unicon (programming language)">Unicon</a> </td></tr> <tr> <td><code>upc</code></td> <td><a href="/wiki/Unified_Parallel_C" title="Unified Parallel C">Unified Parallel C</a> </td></tr> <tr> <td><code>urbi</code></td> <td><a href="/wiki/URBI" title="URBI">URBI</a> </td></tr> <tr> <td><code>uscript</code></td> <td><a href="/wiki/UnrealScript" class="mw-redirect" title="UnrealScript">UnrealScript</a> </td></tr> <tr> <td><code>vala</code></td> <td><a href="/wiki/Vala_(programming_language)" title="Vala (programming language)">Vala</a> </td></tr> <tr> <td><code>vb</code></td> <td><a href="/wiki/Visual_Basic_(classic)" title="Visual Basic (classic)">Visual Basic</a> </td></tr> <tr> <td><code>vbnet</code></td> <td><a href="/wiki/Visual_Basic_.NET" class="mw-redirect" title="Visual Basic .NET">Visual Basic .NET</a> </td></tr> <tr> <td><code>vedit</code></td> <td><a href="/wiki/VEDIT" title="VEDIT">VEDIT</a> </td></tr> <tr> <td><code>verilog</code></td> <td><a href="/wiki/Verilog" title="Verilog">Verilog</a> </td></tr> <tr> <td><code>vhdl</code></td> <td><a href="/wiki/VHDL" title="VHDL">VHDL</a> </td></tr> <tr> <td><code>vim</code></td> <td><a href="/wiki/Vim_script" class="mw-redirect" title="Vim script">Vim script</a> </td></tr> <tr> <td><code>visualfoxpro</code></td> <td><a href="/wiki/Visual_FoxPro" title="Visual FoxPro">Visual FoxPro</a> </td></tr> <tr> <td><code>visualprolog</code></td> <td><a href="/wiki/Visual_Prolog" title="Visual Prolog">Visual Prolog</a> </td></tr> <tr> <td><code>whitespace</code></td> <td><a href="/wiki/Whitespace_(programming_language)" title="Whitespace (programming language)">Whitespace</a> </td></tr> <tr> <td><code>whois</code></td> <td><a href="/wiki/Whois" class="mw-redirect" title="Whois">Whois</a> </td></tr> <tr> <td><code>wikitext</code></td> <td><a href="/wiki/Help:Wikitext" title="Help:Wikitext">Help:Wikitext</a> </td></tr> <tr> <td><code>winbatch</code></td> <td><a href="/wiki/Winbatch" class="mw-redirect" title="Winbatch">Winbatch</a> </td></tr> <tr> <td><code>xml</code></td> <td><a href="/wiki/XML" title="XML">XML</a> </td></tr> <tr> <td><code>xorg_conf</code></td> <td><a href="/wiki/Xorg.conf" title="Xorg.conf">Xorg.conf</a> </td></tr> <tr> <td><code>yaml</code></td> <td><a href="/wiki/YAML" title="YAML">YAML</a> </td></tr> <tr> <td><code>xpp</code></td> <td><a href="/wiki/Microsoft_Dynamics_AX" class="mw-redirect" title="Microsoft Dynamics AX">Microsoft Dynamics AX</a> </td></tr> <tr> <td><code>z80</code></td> <td><a href="/wiki/Zilog_Z80" title="Zilog Z80">Zilog Z80</a> Assembler </td></tr> <tr> <td><code>zxbasic</code></td> <td>ZXBasic </td></tr></tbody></table> <div style="clear:both;" class=""></div> <div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div> <div class="mw-heading mw-heading3"><h3 id="Inline_code">Inline code</h3></div> <p><code class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><span class="p">{{</span><span class="nt">syntaxhighlight</span><span class="p">|</span><span class="nl">lang</span><span class="o">=</span>javascript<span class="p">|</span><span class="nl">code</span><span class="o">=</span>mw.util.addPortletLink('p-personal', '/w/index.php?title=Special:MyPage/Sandbox&action=edit&preload=Template%3AUser_sandbox%2Fpreload&editintro=Template%3AUser_sandbox', 'My sandbox', 'pt-mysandbox', 'Go to my sandbox');<span class="p">}}</span></code> </p> <ul><li><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">mw</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">addPortletLink</span><span class="p">(</span><span class="s1">'p-personal'</span><span class="p">,</span><span class="w"> </span><span class="s1">'/w/index.php?title=Special:MyPage/Sandbox&action=edit&preload=Template%3AUser_sandbox%2Fpreload&editintro=Template%3AUser_sandbox'</span><span class="p">,</span><span class="w"> </span><span class="s1">'My sandbox'</span><span class="p">,</span><span class="w"> </span><span class="s1">'pt-mysandbox'</span><span class="p">,</span><span class="w"> </span><span class="s1">'Go to my sandbox'</span><span class="p">);</span> </pre></div></li></ul> <div class="mw-heading mw-heading3"><h3 id="Necessary_unescaping_of_source_code_from_another_page">Necessary unescaping of source code from another page</h3></div> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">syntaxhighlight</span><span class="p">|{{</span><span class="nf">#invoke</span><span class="p">:</span>DecodeEncode<span class="p">|</span>decode<span class="p">|</span><span class="nl">s</span><span class="o">=</span><span class="p">{{</span><span class="nn">msgnw</span><span class="p">:</span><span class="nt">Template:Engvar/doc/infobox demo</span><span class="p">}}}}|</span><span class="nl">lang</span><span class="o">=</span>wikitext<span class="p">}}</span> </pre></div><div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">infobox</span> <span class="p">|</span><span class="nl"> title </span><span class="o">=</span> Personal likes <span class="p">|</span><span class="nl"> above </span><span class="o">=</span> Demo: using <span class="p">[[</span><span class="nn">WP</span><span class="p">:</span><span class="nt">ENGVAR</span><span class="p">|</span>WP:Engvar<span class="p">]]</span> in templates <span class="p">|</span><span class="nl"> abovestyle </span><span class="o">=</span> background:#ddd; font-weight:normal; font-size:smaller; <span class="p">|</span><span class="nl"> headerstyle </span><span class="o">=</span> background:lemonchiffon <span class="p">|</span><span class="nl"> label1 </span><span class="o">=</span> Home country <span class="p">|</span><span class="nl"> data1 </span><span class="o">=</span> <span class="p">{{{</span><span class="nv">home country</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl"> header2 </span><span class="o">=</span> <span class="p">{{</span><span class="nt">engvar</span><span class="p">|</span><span class="nl">defaultWord</span><span class="o">=</span>Favourite <span class="p">|</span><span class="nl">defaultLang</span><span class="o">=</span>en-GB <span class="p">|</span><span class="nl"> engvar</span><span class="o">=</span><span class="p">{{{</span><span class="nv">engvar</span><span class="p">|</span>auto<span class="p">}}}</span> <span class="p">|</span><span class="nl">en-US</span><span class="o">=</span>Favorite <span class="p">}}</span> things <span class="p">|</span><span class="nl"> label3 </span><span class="o">=</span> <span class="p">{{</span><span class="nt">engvar</span><span class="p">|</span><span class="nl">defaultWord</span><span class="o">=</span>Colour <span class="p">|</span><span class="nl">defaultLang</span><span class="o">=</span>en-GB <span class="p">|</span><span class="nl"> engvar</span><span class="o">=</span><span class="p">{{{</span><span class="nv">engvar</span><span class="p">|</span>auto<span class="p">}}}</span> <span class="p">|</span><span class="nl">en-US</span><span class="o">=</span>Color <span class="p">}}</span> <span class="p">|</span><span class="nl"> data3 </span><span class="o">=</span> <span class="p">{{{</span><span class="nv">color</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl"> label4 </span><span class="o">=</span> <span class="p">{{</span><span class="nt">engvar</span><span class="p">|</span><span class="nl">defaultWord</span><span class="o">=</span>Football <span class="p">|</span><span class="nl">defaultLang</span><span class="o">=</span>en-GB <span class="p">|</span><span class="nl"> engvar</span><span class="o">=</span><span class="p">{{{</span><span class="nv">engvar</span><span class="p">|</span>auto<span class="p">}}}</span> <span class="p">|</span><span class="nl">en-US</span><span class="o">=</span>Soccer <span class="p">|</span><span class="nl">en-AU</span><span class="o">=</span>Association Football<span class="p">}}</span> team <span class="p">|</span><span class="nl"> data4 </span><span class="o">=</span> <span class="p">{{{</span><span class="nv">team</span><span class="p">|}}}</span> <span class="p">|</span><span class="nl"> below </span><span class="o">=</span> In this demo 'article', the template parameter is set: <span class="p">{{</span><span class="nt">para</span><span class="p">|</span><span class="nl">1</span><span class="o">=</span>engvar<span class="p">|</span><span class="nl">2</span><span class="o">=</span><span class="p">{{{</span><span class="nv">engvar</span><span class="p">|</span>(unspecified)<span class="p">}}}}}</span> <span class="p">|</span><span class="nl"> belowstyle </span><span class="o">=</span> background:#ddd; <span class="p">}}</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="TemplateData">TemplateData</h2></div> <section class="mw-templatedata-doc-wrap"><header><p class="mw-templatedata-doc-desc">Simple wrapper around the syntaxhighlight tag to show syntax-highlighted text. Unlike syntaxhighlight, text that does not fit on the screen will be wrapped.</p></header><table class="wikitable mw-templatedata-doc-params sortable"><caption><p class="mw-templatedata-caption">Template parameters<span class="mw-editsection-like"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Template:Syntaxhighlight/doc&action=edit&templatedata=edit" title="Template:Syntaxhighlight/doc">Edit template data</a><span class="mw-editsection-bracket">]</span></span></p></caption><thead><tr><th colspan="2">Parameter</th><th>Description</th><th>Type</th><th>Status</th></tr></thead><tbody><tr><th>code</th><td class="mw-templatedata-doc-param-name"><code>code</code> <code class="mw-templatedata-doc-param-alias">1</code></td><td><p>The code that will be displayed</p><dl></dl></td><td class="mw-templatedata-doc-param-type">Content</td><td class="mw-templatedata-doc-param-status-required" data-sort-value="2">required</td></tr><tr><th>lang</th><td class="mw-templatedata-doc-param-name"><code>lang</code> <code class="mw-templatedata-doc-param-alias">2</code></td><td><p>The language of the code</p><dl><dt>Default</dt><dd>text</dd></dl></td><td class="mw-templatedata-doc-param-type">String</td><td class="mw-templatedata-doc-param-status-suggested" data-sort-value="1">suggested</td></tr><tr><th>border</th><td class="mw-templatedata-doc-param-name"><code>border</code></td><td><p>Set this to "no" to remove the border</p><dl><dt>Auto value</dt><dd><code>no</code></dd></dl></td><td class="mw-templatedata-doc-param-type mw-templatedata-doc-muted">Unknown</td><td class="mw-templatedata-doc-param-status-optional" data-sort-value="0">optional</td></tr></tbody></table></section> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style><style data-mw-deduplicate="TemplateStyles:r1003227249">.mw-parser-output .var-serif{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1}</style><style data-mw-deduplicate="TemplateStyles:r1247621465">.mw-parser-output span.tj-tape{padding:1px 4px;font-family:"Menlo","Consolas","Liberation Mono","Courier New",monospace;white-space:pre-wrap;word-wrap:break-word;background-color:var(--background-color-neutral-subtle,#f8f9fa);color:var(--color-emphasized,#000);border:1px solid var(--border-color-muted,#eaecf0);line-height:1.3;tab-size:4;vertical-align:baseline;border-radius:2px;margin:0}.mw-parser-output span.tj-tape span.tj-tn,.mw-parser-output span.tj-tape span.tj-tn a,.mw-parser-output span.tj-tape span.tj-tn a:link,.mw-parser-output span.tj-tape span.tj-tn a:visited,.mw-parser-output span.tj-tape span.tj-tn a:hover{font-weight:bold;color:#4169e1}.mw-parser-output span.tj-tape span.tj-an{font-weight:bold;color:#2e8b57}.mw-parser-output span.tj-tape span.tj-ac{font-style:italic;color:#933}.mw-parser-output span.tj-tape span.tj-nc{margin:0 .075em}.mw-parser-output span.tj-tape span.tj-nc+span.tj-nc,.mw-parser-output span.tj-tape span.tj-nc:first-child{margin:0 .075em 0 0}.mw-parser-output span.tj-tape span.tj-nc:last-child{margin:0 0 0 .075em}@media screen{html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-tn,html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-tn a,html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-tn a:link,html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-tn a:visited,html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-tn a:hover{color:#6383E7}html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-an{color:#339a60}html.skin-theme-clientpref-night .mw-parser-output div.tj-tape span.tj-ac{color:#D07373}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-tn,html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-tn a,html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-tn a:link,html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-tn a:visited,html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-tn a:hover{color:#6383E7}html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-an{color:#339a60}html.skin-theme-clientpref-os .mw-parser-output div.tj-tape span.tj-ac{color:#D07373}}</style><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1247621465"><style data-mw-deduplicate="TemplateStyles:r1239335663">.mw-parser-output .mw-tmpl-kbd{background:#EEE;color:var(--color-base)}@media screen{html.skin-theme-clientpref-night .mw-parser-output .mw-tmpl-kbd{background:#171a1d}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .mw-tmpl-kbd{background:#171a1d}}</style><style data-mw-deduplicate="TemplateStyles:r1249182868">.mw-parser-output .keyboard-key{border:1px solid #aaa;border-radius:0.2em;box-shadow:0.1em 0.1em 0.2em rgba(0,0,0,0.1);background-color:var(--background-color-neutral-subtle,#f8f9fa);background-image:linear-gradient(to bottom,var(--background-color-neutral,#eaecf0),var(--background-color-neutral-subtle,#f8f9fa),var(--background-color-neutral,#eaecf0));color:var(--color-base,#202122);padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}</style></div><div role="navigation" class="navbox" aria-labelledby="Semantic_markup_templates" style="padding:3px"><table class="nowraplinks mw-collapsible show navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Semantic_markup_templates" title="Template:Semantic markup templates"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Semantic_markup_templates" title="Template talk:Semantic markup templates"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Semantic_markup_templates" title="Special:EditPage/Template:Semantic markup templates"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Semantic_markup_templates" style="font-size:114%;margin:0 4em"><a href="/wiki/Category:Semantic_markup_templates" title="Category:Semantic markup templates">Semantic markup templates</a></div></th></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0;font-size:110%;"><div style="padding:0 0.25em"><table class="wikitable sortable" style="line-height:1.35em;text-align:left;"><tbody><tr style="vertical-align:top"><th scope="col" style="line-height:1.6em;;padding-right:1.0em;;"> Template </th><th scope="col" style="line-height:1.6em;;padding-right:1.0em;;white-space:nowrap;"> Example output </th><th scope="col" style="line-height:1.6em;;padding-right:1.0em;;white-space:normal;"> Use </th></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Strong" title="Template:Strong">strong</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <strong>Important!</strong></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate <a href="/wiki/HTML_element#strong" title="HTML element"><strong></a> importance, seriousness, or urgency instead of just simple typographical boldfacing</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Strongbad" title="Template:Strongbad">strongbad</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> "<strong style="color: red;">Never</strong> use ..."</td><td style="padding-right:1.0em;;white-space:normal;"> Same as {{strong}} but in red</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Stronggood" title="Template:Stronggood">stronggood</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> "<strong style="color:green;">Only</strong> use ..."</td><td style="padding-right:1.0em;;white-space:normal;"> Same as {{strong}} but in green</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Em" title="Template:Em">em</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> "An <em>emphatic phrase</em>"</td><td style="padding-right:1.0em;;white-space:normal;"> To indicate <a href="/wiki/HTML_element#em" title="HTML element"><em></a> stress emphasis (not just purely typographical italicization like for book titles or foreign terms)</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Var" title="Template:Var">var</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <var style="padding-right: 1px;">strPrefix</var></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{var serif}} should be used to ensure a noticeable distinction</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Var_serif" title="Template:Var serif">var serif</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <var class="var-serif">strIllustratePrefix</var></td><td style="padding-right:1.0em;;white-space:normal;"> (see {{var}} above)</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tld" class="mw-redirect" title="Template:Tld">tld</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span class="nowrap"><code>{{DEFAULTSORT:Y, X}}</code></span></td><td style="padding-right:1.0em;;white-space:normal;"> To display wikicode variables and <a href="/wiki/Help:Magic_words" title="Help:Magic words">magic words</a> as they would appear in code</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Para" title="Template:Para">para</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <code class="tpl-para" style="word-break:break-word;">|year=2008</code></td><td style="padding-right:1.0em;;white-space:normal;"> To display template parameters with or without values</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Param" title="Template:Param">param</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <code>{{{title|alt}}}</code></td><td style="padding-right:1.0em;;white-space:normal;"> To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{para}} above</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tjp" class="mw-redirect" title="Template:Tjp">tjp</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span class="tj-tape"><span class="tj-an">selfref</span><span class="tj-nc">=</span><span class="tj-ac">yes</span></span></td><td style="padding-right:1.0em;;white-space:normal;"> To display template parameters with colors (as they would appear in the <span class="nowrap">{{</span><a href="/wiki/Template:Tj" class="mw-redirect" title="Template:Tj">tj</a><span class="nowrap">}}</span> and <span class="nowrap">{{</span><a href="/wiki/Template:Tji" class="mw-redirect" title="Template:Tji">tji</a><span class="nowrap">}}</span> templates)</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Param_value" title="Template:Param value">param value</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <code style="border:thin solid var(--border-color-base, #caa);background-color:var(--color-inverted, white);color:inherit;padding:1px 2px 0 1px;margin:0 2px 0 1px;white-space:nowrap;">··2·blanks·fore·and·aft··</code></td><td style="padding-right:1.0em;;white-space:normal;"> To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with <a href="/wiki/Middot" class="mw-redirect" title="Middot">middot</a> (·) but can use ␠, ▯, or any character.</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tlx" class="mw-redirect" title="Template:Tlx">tlx</a></b>}} etc.</td><td style="padding-right:1.0em;;white-space:nowrap;"> <code>{{<a href="/wiki/Template:Template" class="mw-redirect" title="Template:Template">Template</a>|<var style="padding-right: 1px;">1</var>|<var style="padding-right: 1px;">2</var>|...|<var style="padding-right: 1px;">10</var>}}</code></td><td style="padding-right:1.0em;;white-space:normal;"> To display a template call (with or without parameters and values) as code</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tji" class="mw-redirect" title="Template:Tji">tji</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span class="tj-tape"><span class="tj-nc">{{</span><span class="tj-tn"><a href="/wiki/Template:Hatnote" title="Template:Hatnote">hatnote</a></span><wbr /><span class="tj-nc">|</span><span class="tj-ac">Hello</span><wbr /><span class="tj-nc">|</span><span class="tj-an">selfref</span><span class="tj-nc">=</span><span class="tj-ac">yes</span><wbr /><span class="tj-nc">|</span><span class="tj-an">category</span><span class="tj-nc">=</span><span class="tj-ac">no</span><span class="tj-nc">}}</span></span></td><td style="padding-right:1.0em;;white-space:normal;"> To showcase with colors in horizontal format the syntax of any template, while providing an easy way to display placeholder texts using colons as separators</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tag" title="Template:Tag">tag</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span style="font-size:95%;">"The <code class="nowrap" style=""><img>...</img></code> tags ..."</span></td><td style="padding-right:1.0em;;white-space:normal;"> To render <a href="/wiki/HTML_element" title="HTML element">HTML elements</a> ("tags") in prose</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Code" title="Template:Code">code</a></b>}}/{{<b><a href="/wiki/Template:Codett" title="Template:Codett">codett</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span style="font-size:95%;">"Ensure the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">alt=</code> parameter ..."</span></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate text is source code. To nest other templates within {{code}}, use <code class="nowrap" style=""><code>...</code></code>. <span class="nowrap">{{</span><a href="/wiki/Template:Codett" title="Template:Codett">codett</a><span class="nowrap">}}</span> differs only in styling: <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">someMethod</code> becomes <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="background:none; border:none; color:inherit; padding: 0px 0px;" dir="ltr">someMethod</code></td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:PreCode" title="Template:PreCode">PreCode</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <span style="font-size:95%;">"<a href="/wiki/Forth_(programming_language)" title="Forth (programming language)">FORTH</a> has keyword <code style="white-space:pre;">?BRANCH</code>."</span></td><td style="padding-right:1.0em;;white-space:normal;"> Like {{<b><a href="/wiki/Template:Code" title="Template:Code">code</a></b>}}, but prevents line breaks inside the code. Only for very short code parts.</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<a href="/wiki/Template:Codenowiki" title="Template:Codenowiki">subst:codenowiki</a>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <code>{{small|small text example}}</code></td><td style="padding-right:1.0em;;white-space:normal;"> To wrap example code in <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr"><code><nowiki>...</nowiki></code></code></td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<a href="/wiki/Template:Kbdnowiki" title="Template:Kbdnowiki">subst:kbdnowiki</a>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <kbd>{{large|large text example}}</kbd></td><td style="padding-right:1.0em;;white-space:normal;"> To wrap example code in <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr"><kbd><nowiki>...</nowiki></kbd></code></td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a class="mw-selflink selflink">syntaxhighlight</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;">     <sub>[this is a block template]</sub></td><td style="padding-right:1.0em;;white-space:normal;"> (<span style="white-space: nowrap;"> or <code>{{<a href="/wiki/Template:Sxhl" class="mw-redirect" title="Template:Sxhl">sxhl</a>}}</code> </span>)  Wrapper for <code class="nowrap" style=""><syntaxhighlight>...</syntaxhighlight></code>, but will wrap overflowing text</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Deprecated_code" title="Template:Deprecated code">deprecated code</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> "Do not use <code class="nowrap" style=""><<del class="deprecated-content" style="color:var(--color-subtle, #808080); text-decoration:none;">blink</del>></code>."</td><td style="padding-right:1.0em;;white-space:normal;"> (<span style="white-space: nowrap;"> or <code>{{<a href="/wiki/Template:Dc" class="mw-redirect" title="Template:Dc">dc</a>}}</code> </span>)  To indicate <a href="/wiki/Deprecation" title="Deprecation">deprecated</a> source code in template documentation, articles on HTML specs, etc. The <code>{{<a href="/wiki/Template:Dc2" class="mw-redirect" title="Template:Dc2">dc2</a>}}</code> variant uses strike-through (<code class="nowrap" style=""><<del class="deprecated-content" style="color: #A9A9A9; text-decoration:line-through;"><span style="color: #696969;">blink</span></del>></code>) while <code>{{<a href="/wiki/Template:Dcr" class="mw-redirect" title="Template:Dcr">dcr</a>}}</code> uses red (<code class="nowrap" style=""><<del class="deprecated-content" style="color:var(--color-content-removed, #8B0000); text-decoration:none;">blink</del>></code>).</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Pre" title="Template:Pre">pre</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;">     <sub>[this is a block template]</sub></td><td style="padding-right:1.0em;;white-space:normal;"> For larger blocks of source code and other pre-formatted text</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Tj" class="mw-redirect" title="Template:Tj">tj</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;">     <sub>[this is a block template]</sub></td><td style="padding-right:1.0em;;white-space:normal;"> To showcase with colors and multiple lines (vertical format) the syntax of any template, while providing an easy way to display placeholder texts using colons as separators</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Quote" class="mw-redirect" title="Template:Quote">quote</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;">     <sub>[this is a block template]</sub></td><td style="padding-right:1.0em;;white-space:normal;"> For block quotations (only – never for non-quotations)</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Block_indent" title="Template:Block indent">block indent</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;">     <sub>[this is a block template]</sub></td><td style="padding-right:1.0em;;white-space:normal;"> For indented blocks of material; visually identical to <code>{{<a href="/wiki/Template:Quote" class="mw-redirect" title="Template:Quote">quote</a>}}</code> but without quote markup</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Kbd" title="Template:Kbd">kbd</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <kbd class="mw-tmpl-kbd" style="letter-spacing:0.05em; padding-left:0.25em; padding-right:0.2em;">user input</kbd></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate user input</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Key_press" title="Template:Key press">key press</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">x</kbd></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate specific-keystroke input, including combinations</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Key_top" title="Template:Key top">key top</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <kbd class="keyboard-key nowrap" style="border: 0.1em solid #AAA; border-radius:0.2em; box-shadow: 0.1em 0.2em 0.2em #DDD; background-color: #F9F9F9; background-image: linear-gradient(to bottom, #EEE, #F9F9F9, #EEE); padding: 0.1em 0.3em; font-family: inherit; font-size: 0.85em;">Left shift</kbd></td><td style="padding-right:1.0em;;white-space:normal;"> Similar; includes more symbols, but does not directly support combinations</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Button" title="Template:Button">button</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <kbd class="nowrap button" title="This is not a clickable button; it illustrates the button one should find." style="padding:.2em .6em; border:1px solid; border-color:var(--border-color-base, #a2a9b1) var(--border-color-interactive, #72777d) var(--border-color-interactive, #72777d) var(--border-color-base, #a2a9b1); border-radius:3px; background-color: #F2F2F2; color: inherit; background-image: linear-gradient(to bottom, var(--background-color-interactive-subtle, #f8f9fa), var(--background-color-interactive, #eaecf0)); font-family:sans-serif;">Don't save</kbd></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate a button in a user interface</td></tr><tr style="vertical-align:top"><td style="padding-right:1.0em;;"> {{<b><a href="/wiki/Template:Samp" title="Template:Samp">samp</a></b>}}</td><td style="padding-right:1.0em;;white-space:nowrap;"> <samp style="padding-left:0.4em; padding-right:0.4em; color:var( --color-subtle, #666666);">example output</samp></td><td style="padding-right:1.0em;;white-space:normal;"> To indicate sample or example output</td></tr></tbody></table></div></td></tr></tbody></table></div> <div class="documentation-clear"></div> </div> <div role="note" class="documentation-metadata plainlinks">The above <a href="/wiki/Wikipedia:Template_documentation" title="Wikipedia:Template documentation">documentation</a> is <a href="/wiki/Help:Transclusion" title="Help:Transclusion">transcluded</a> from <a href="/wiki/Template:Syntaxhighlight/doc" title="Template:Syntaxhighlight/doc">Template:Syntaxhighlight/doc</a>. <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Template:Syntaxhighlight/doc" title="Special:EditPage/Template:Syntaxhighlight/doc">edit</a> | <a href="/wiki/Special:PageHistory/Template:Syntaxhighlight/doc" title="Special:PageHistory/Template:Syntaxhighlight/doc">history</a>)</span><br />Editors can experiment in this template's <a href="/wiki/Template:Syntaxhighlight/sandbox" title="Template:Syntaxhighlight/sandbox">sandbox</a> <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Template:Syntaxhighlight/sandbox" title="Special:EditPage/Template:Syntaxhighlight/sandbox">edit</a> | <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Template%3ASyntaxhighlight&page2=Template%3ASyntaxhighlight%2Fsandbox">diff</a>)</span> and <a href="/wiki/Template:Syntaxhighlight/testcases" title="Template:Syntaxhighlight/testcases">testcases</a> <span class="documentation-toolbar">(<a href="/wiki/Special:EditPage/Template:Syntaxhighlight/testcases" title="Special:EditPage/Template:Syntaxhighlight/testcases">edit</a>)</span> pages.<br />Add categories to the <a href="/wiki/Template:Syntaxhighlight/doc" title="Template:Syntaxhighlight/doc">/doc</a> subpage. <a href="/wiki/Special:PrefixIndex/Template:Syntaxhighlight/" title="Special:PrefixIndex/Template:Syntaxhighlight/">Subpages of this template</a>.</div></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐66695f89d8‐9hq7s Cached time: 20241119180806 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.577 seconds Real time usage: 1.031 seconds Preprocessor visited node count: 2858/1000000 Post‐expand include size: 205834/2097152 bytes Template argument size: 3703/2097152 bytes Highest expansion depth: 26/100 Expensive parser function count: 16/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 29085/5000000 bytes Lua time usage: 0.282/10.000 seconds Lua memory usage: 4436618/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 909.562 1 -total 100.00% 909.562 1 Template:Documentation 90.25% 820.907 1 Template:Syntaxhighlight/doc 40.46% 368.046 1 Template:Semantic_markup_templates 39.90% 362.890 1 Template:Navbox 29.83% 271.362 1 Template:Demo 29.16% 265.268 2 Template:Syntaxhighlight 28.18% 256.299 1 Template:Aligned_table 5.33% 48.456 1 Template:Incomplete_list 5.18% 47.153 1 Template:Tsh --> <!-- Saved in parser cache with key enwiki:pcache:27507281:|#|:idhash:canonical and timestamp 20241119180806 and revision id 1212192381. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Template:Syntaxhighlight&oldid=1212192381">https://en.wikipedia.org/w/index.php?title=Template:Syntaxhighlight&oldid=1212192381</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Category</a>: <ul><li><a href="/wiki/Category:Text-specific_formatting_and_function_templates" title="Category:Text-specific formatting and function templates">Text-specific formatting and function templates</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Wikipedia_semi-protected_templates" title="Category:Wikipedia semi-protected templates">Wikipedia semi-protected templates</a></li><li><a href="/wiki/Category:Article_message_templates_with_missing_parameters" title="Category:Article message templates with missing parameters">Article message templates with missing parameters</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 6 March 2024, at 15:57<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Template:Syntaxhighlight&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-knhz5","wgBackendResponseTime":107,"wgPageParseReport":{"limitreport":{"cputime":"0.577","walltime":"1.031","ppvisitednodes":{"value":2858,"limit":1000000},"postexpandincludesize":{"value":205834,"limit":2097152},"templateargumentsize":{"value":3703,"limit":2097152},"expansiondepth":{"value":26,"limit":100},"expensivefunctioncount":{"value":16,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":29085,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 909.562 1 -total","100.00% 909.562 1 Template:Documentation"," 90.25% 820.907 1 Template:Syntaxhighlight/doc"," 40.46% 368.046 1 Template:Semantic_markup_templates"," 39.90% 362.890 1 Template:Navbox"," 29.83% 271.362 1 Template:Demo"," 29.16% 265.268 2 Template:Syntaxhighlight"," 28.18% 256.299 1 Template:Aligned_table"," 5.33% 48.456 1 Template:Incomplete_list"," 5.18% 47.153 1 Template:Tsh"]},"scribunto":{"limitreport-timeusage":{"value":"0.282","limit":"10.000"},"limitreport-memusage":{"value":4436618,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-66695f89d8-9hq7s","timestamp":"20241119180806","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>