From World Wide Wiegert Wiki - WWWW
|
|
(10 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <syntaxhighlight lang="python"> | | == Welcome! == |
| ..
| | [[Random link]] |
| | |
| | == Syntax highlightning: == |
| | Code: |
| | {{ #tag: syntaxhighlight | |
| | <<noinclude/>syntaxhighlight lang="python"> |
| | def quick_sort(arr): |
| | less = [] |
| | pivot_list = [] |
| | more = [] |
| | if len(arr) <= 1: |
| | return arr |
| | else: |
| | pass |
| | </syntaxhighlight> |
| | | lang=python }} |
| | Result: |
| | <syntaxhighlight lang="python" line="1"> |
| | def quick_sort(arr): |
| | less = [] |
| | pivot_list = [] |
| | more = [] |
| | if len(arr) <= 1: |
| | return arr |
| | else: |
| | pass |
| </syntaxhighlight> | | </syntaxhighlight> |
| | Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages |
|
| |
|
| === Supported languages ===
| |
| The Pygments library provides support for hundreds of computer languages and file formats. As of January 2020 the full list is:
| |
|
| |
|
| ==== Programming languages ====
| | [[File:8472.png]] |
| ActionScriptAdaAgda (incl. literate)AlloyAMPLANTLRAPLAppleScriptAssembly (various)AsymptoteAugeasAutoItAwkBBC BasicBefungeBlitzBasicBoaBooBoogieBrainFuckC, C++ (incl. dialects like Arduino)C#ChapelCharm++ CICirruClayCleanClojureCoffeeScriptColdFusionCommon LispComponent PascalCoqCroc (MiniD)Cryptol (incl. Literate Cryptol)CrystalCypherCythonDDartDCPU-16DelphiDylan (incl. console)EiffelElmEmacs LispEmailErlang (incl. shell sessions)EzhilFactorFancyFantomFennelFloScriptFortranFreeFEM++F#GAPGherkin (Cucumber)GLSL shadersGoloGosuGroovyHaskell (incl. Literate Haskell)HLSLHSpecHyIDLIdris (incl. Literate Idris)Igor ProIoJagsJavaJavaScriptJasminJclJuliaKotlinLasso (incl. templating)LimboLiveScriptLogtalkLogosLuaMathematicaMatlabModelicaModula-2MonkeyMonteMoonScriptMoselMuPadNASMNemerleNesCNewLISPNimrodNitNotmuchNuSMVObjective-CObjective-JOctaveOCamlOpaOpenCOBOLParaSailPawnPHPPerl 5PikePonyPovRayPostScriptPowerShellPraatPrologPython (incl. console sessions and tracebacks)QBasicRacketRaku a.k.a. Perl 6REBOLRedRedcodeRexxRideRuby (incl. irb sessions)RustS, S-Plus, RScalaScdocSchemeScilabSGFShell scripts (Bash, Tcsh, Fish)ShenSilverSlashSlurmSmalltalkSNOBOLSnowballSoliditySourcePawnStanStandard MLStataSwiftSwigSuperColliderTclTera Term languageTypeScriptTypoScriptUSDUniconUrbiscriptValaVBScriptVerilog, SystemVerilogVHDLVisual Basic.NETVisual FoxProWhileyXtendXQueryZeekZephirZig
| |
| ==== Template languages ====
| |
| Angular templatesCheetah templatesColdFusionDjango / Jinja templatesERB (Ruby templating)EvoqueGenshi (the Trac template language)HandlebarsJSP (Java Server Pages)LiquidMyghty (the HTML::Mason based framework)Mako (the Myghty successor)SlimSmarty templates (PHP templating)TeaTwig
| |
| ==== Other markup ====
| |
| Apache config filesApache PigBBCodeCapDLCap'n ProtoCMakeCsound scoresCSSDebian control filesDiff filesDockerfilesDTDEBNFE-mail headersExtemporeFlatlineGettext catalogsGnuplot scriptGroff markupHexdumpsHTMLHTTP sessionsIDLInformINI-style config filesIRC logs (irssi style)IsabelleJSGF notationJSON, JSON-LDLean theorem proverLighttpd config filesLinux kernel log (dmesg)LLVM assemblyLSL scriptsMakefilesMoinMoin/Trac Wiki markupMQLMySQLNCAR command languageNginx config filesNix languageNSIS scriptsNotmuchPOV-Ray scenesPuppetQMLRagelRedcodeReSTRoboconfRobot FrameworkRPM spec filesRqlRSLScdocSPARQLSQL, also MySQL, SQLiteSquid configurationTADS 3TerraformTeXThriftTOMLTreetop grammarsUSD (Universal Scene Description)Varnish configsVGLVim ScriptWDiffWindows batch filesXMLXSLTYAMLWindows Registry files
| |
Latest revision as of 16:49, 20 November 2023