Difference between revisions of "Syntaxhighlight"
From HackerNet
Tag: visualeditor |
|||
Line 17: | Line 17: | ||
Alla språk som stöds. | Alla språk som stöds. | ||
− | {| | + | |
− | !Code | + | {| class="wikitable" style="float:left" |
− | + | !Code||Language | |
|- | |- | ||
− | |<code>abap</code> | + | |<code>abap</code>||[[:en:ABAP|ABAP]] |
− | |ABAP | ||
|- | |- | ||
− | |<code>actionscript</code> | + | |<code>actionscript</code>||[[:en:ActionScript|ActionScript]] |
− | |ActionScript | ||
|- | |- | ||
− | |<code>ada</code> | + | |<code>ada</code>||[[:en:Ada (programming language)|Ada]] |
− | |Ada | ||
|- | |- | ||
− | |<code>apache</code> | + | |<code>apache</code>||[[:en:Apache HTTP Server|Apache Configuration]] |
− | |Apache Configuration | ||
|- | |- | ||
− | |<code>applescript</code> | + | |<code>applescript</code>||[[:en:AppleScript|AppleScript]] |
− | |AppleScript | ||
|- | |- | ||
− | |<code>asm</code> | + | |<code>asm</code>||[[:en:Assembly language|Assembly]] |
− | |Assembly | ||
|- | |- | ||
− | |<code>asp</code> | + | |<code>asp</code>||[[:en:Active Server Pages|Active Server Pages (ASP)]] |
− | |Active Server Pages (ASP) | ||
|- | |- | ||
− | |<code>autoit</code> | + | |<code>autoit</code>||[[:en:AutoIt|AutoIt]] |
− | |AutoIt | ||
|- | |- | ||
− | |<code>bash</code> | + | |<code>bash</code>||[[:en:Bash (Unix shell)|Bash]] |
− | |Bash | ||
|- | |- | ||
− | |<code>basic4gl</code> | + | |<code>basic4gl</code>||[[:en:Basic4GL|Basic4GL]] |
− | |Basic4GL | ||
|- | |- | ||
− | |<code>bf</code> | + | |<code>bf</code>||[[:en:Brainfuck|Brainfuck]] |
− | |Brainfuck | ||
|- | |- | ||
− | |<code>blitzbasic</code> | + | |<code>blitzbasic</code>||[[:en:Blitz BASIC|Blitz BASIC]] |
− | |Blitz BASIC | ||
|- | |- | ||
− | |<code>bnf</code> | + | |<code>bnf</code>||[[:en:Backus-Naur Form|Backus-Naur Form]] |
− | |Backus-Naur Form | ||
|- | |- | ||
− | |<code>c</code> | + | |<code>c</code>||[[:en:C (programming language)|C]] |
− | |C | ||
|- | |- | ||
− | |<code>c_mac</code> | + | |<code>c_mac</code>||C (Mac) |
− | |C (Mac) | ||
|- | |- | ||
− | |<code>caddcl</code> | + | |<code>caddcl</code>||[[:en:Dialog Control Language|AutoCAD DCL]] |
− | |AutoCAD DCL | ||
|- | |- | ||
− | |<code>cadlisp</code> | + | |<code>cadlisp</code>||[[:en:AutoLISP|AutoLISP]] |
− | |AutoLISP | ||
|- | |- | ||
− | |<code>cfdg</code> | + | |<code>cfdg</code>||CFDG |
− | |CFDG | ||
|- | |- | ||
− | |<code>cfm</code> | + | |<code>cfm</code>||[[:en:ColdFusion_Markup_Language|ColdFusion Markup Language]] |
− | |ColdFusion Markup Language | ||
|- | |- | ||
− | |<code>cil</code> | + | |<code>cil</code>||[[:en:Common_Intermediate_Language|Common Intermediate Language (CIL)]] |
− | |Common Intermediate Language (CIL) | ||
|- | |- | ||
− | |<code>cobol</code> | + | |<code>cobol</code>||[[:en:COBOL|COBOL]] |
− | |COBOL | ||
|- | |- | ||
− | |<code>cpp-qt</code> | + | |<code>cpp-qt</code>||[[:en:Qt (toolkit)|C++ (Qt toolkit)]] |
− | |C++ (Qt toolkit) | ||
|- | |- | ||
− | |<code>cpp</code> | + | |<code>cpp</code>||[[:en:C++|C++]] |
− | |C++ | ||
|- | |- | ||
− | |<code>csharp</code> | + | |<code>csharp</code>||[[:en:C Sharp (programming language)|C#]] |
− | |C# | ||
|- | |- | ||
− | |<code>css</code> | + | |<code>css</code>||[[:en:Cascading Style Sheets|Cascading Style Sheets (CSS)]] |
− | |Cascading Style Sheets (CSS) | ||
|- | |- | ||
− | |<code>d</code> | + | |<code>d</code>||[[:en:D (programming language)|D]] |
− | |D | ||
|- | |- | ||
− | |<code>delphi</code> | + | |<code>delphi</code>||[[:en:Delphi programming language|Delphi]] |
− | |Delphi | ||
|- | |- | ||
− | |<code>diff</code> | + | |<code>diff</code>||[[:en:diff|Diff]] |
− | |Diff | ||
|- | |- | ||
− | |<code>div</code> | + | |<code>div</code>||DIV |
− | |DIV | ||
|- | |- | ||
− | |<code>dos</code> | + | |<code>dos</code>||[[:en:DOS batch file|DOS batch file]] |
− | |DOS batch file | ||
|- | |- | ||
− | |<code>dot</code> | + | |<code>dot</code>||[[:en:DOT language|DOT]] |
− | |DOT | ||
|- | |- | ||
− | |<code>eiffel</code> | + | |<code>eiffel</code>||[[:en:Eiffel (programming language)|Eiffel]] |
− | |Eiffel | ||
|- | |- | ||
− | |<code>fortran</code> | + | |<code>fortran</code>||[[:en:Fortran|Fortran]] |
− | |Fortran | ||
|- | |- | ||
− | |<code>freebasic</code> | + | |<code>freebasic</code>||[[:en:FreeBASIC|FreeBASIC]] |
− | |FreeBASIC | ||
|- | |- | ||
− | |<code>gambas</code> | + | |<code>gambas</code>||[[:en:Gambas_programming_language|Gambas]] |
− | |Gambas | ||
|- | |- | ||
− | |<code>genero</code> | + | |<code>genero</code>||Genero |
− | |Genero | ||
|- | |- | ||
− | |<code>gettext</code> | + | |<code>gettext</code>||[[:en:GNU_gettext|GNU internationalization (i18n) library]] |
− | |GNU internationalization (i18n) library | ||
|- | |- | ||
− | |<code>glsl</code> | + | |<code>glsl</code>||[[:en:GLSL|OpenGL Shading Language (GLSL)]] |
− | |OpenGL Shading Language (GLSL) | ||
|- | |- | ||
− | |<code>gml</code> | + | |<code>gml</code>||[[:en:Game Maker Language|Game Maker Language (GML)]] |
− | |Game Maker Language (GML) | ||
|- | |- | ||
− | |<code>gnuplot</code> | + | |<code>gnuplot</code>||[[:en:Gnuplot|gnuplot]] |
− | |gnuplot | ||
|- | |- | ||
− | |<code>groovy</code> | + | |<code>groovy</code>||[[:en:Groovy (programming language)|Groovy]] |
− | |Groovy | ||
|- | |- | ||
− | |<code>haskell</code> | + | |<code>haskell</code>||[[:en:Haskell (programming language)|Haskell]] |
− | |Haskell | ||
|- | |- | ||
− | |<code>Haxe</code> | + | |<code>Haxe</code>||[[:en:Haxe|Haxe]] |
− | |Haxe | ||
|- | |- | ||
− | |<code>hq9plus</code> | + | |<code>hq9plus</code>||HQ9+ |
− | |HQ9+ | ||
|- | |- | ||
− | |<code>html4strict</code> | + | |<code>html4strict</code>||[[:en:HTML|HTML]] |
− | |HTML | ||
|- | |- | ||
− | |<code>html5</code> | + | |<code>html5</code>||[[:en:HTML5|HTML5]] |
− | |HTML5 | ||
|- | |- | ||
− | |<code>idl</code> | + | |<code>idl</code>||[[:en:Universal Network Objects|Uno IDL]] |
− | |Uno IDL | ||
|- | |- | ||
− | |<code>ini</code> | + | |<code>ini</code>||[[:en:INI file|INI]] |
− | |INI | ||
|- | |- | ||
− | |<code>inno</code> | + | |<code>inno</code>||[[:en:Inno Setup|Inno]] |
− | |Inno | ||
|- | |- | ||
− | |<code>intercal</code> | + | |<code>intercal</code>||[[:en:INTERCAL|INTERCAL]] |
− | |INTERCAL | ||
|- | |- | ||
− | |<code>io</code> | + | |<code>io</code>||[[:en:Io (programming language)|Io]] |
− | |Io | ||
|- | |- | ||
− | |<code>java</code> | + | |<code>java</code>||[[:en:Java (programming language)|Java]] |
− | |Java | ||
|- | |- | ||
− | |<code>java5</code> | + | |<code>java5</code>||[[:en:Java (programming language)|Java(TM) 2 Platform Standard Edition 5.0 ]] |
− | |Java(TM) 2 Platform Standard Edition 5.0 | ||
|- | |- | ||
− | |<code>javascript</code> | + | |<code>javascript</code>||[[:en:JavaScript|JavaScript]] |
− | |JavaScript | ||
|- | |- | ||
− | |<code>kixtart</code> | + | |<code>kixtart</code>||[[:en:KiXtart|KiXtart]] |
− | |KiXtart | ||
|- | |- | ||
− | |<code>klonec</code> | + | |<code>klonec</code>||Klone C |
− | |Klone C | ||
|- | |- | ||
− | |<code>klonecpp</code> | + | |<code>klonecpp</code>||Klone C++ |
− | |Klone C++ | ||
|- | |- | ||
− | |<code>latex</code> | + | |<code>latex</code>||[[:en:LaTeX|LaTeX]] |
− | |LaTeX | ||
|- | |- | ||
− | |<code>lisp</code> | + | |<code>lisp</code>||[[:en:Lisp (programming language)|Lisp]] |
− | |Lisp | ||
|- | |- | ||
− | |<code>lolcode</code> | + | |<code>lolcode</code>||[[:en:LOLCODE|LOLCODE]] |
− | |LOLCODE | ||
|- | |- | ||
− | |<code>lotusscript</code> | + | |<code>lotusscript</code>||[[:en:LotusScript|LotusScript]] |
− | |LotusScript | ||
|- | |- | ||
− | |<code>lua</code> | + | |<code>lua</code>||[[:en:Lua (programming language)|Lua]] |
− | |Lua | ||
|} | |} | ||
− | {| | + | {| class="wikitable" style="float:left" |
− | !Code | + | !Code||Language |
− | |||
|- | |- | ||
− | |<code>m68k</code> | + | |<code>m68k</code>||[[:en:Motorola 68000|Motorola 68000 Assembler]] |
− | |Motorola 68000 Assembler | ||
|- | |- | ||
− | |<code>make</code> | + | |<code>make</code>||[[:en:Make_(software)|make]] |
− | |make | ||
|- | |- | ||
− | |<code>matlab</code> | + | |<code>matlab</code>||[[:en:MATLAB|MATLAB M]] |
− | |MATLAB M | ||
|- | |- | ||
− | |<code>mirc</code> | + | |<code>mirc</code>||[[:en:mIRC scripting language|mIRC scripting language]] |
− | |mIRC scripting language | ||
|- | |- | ||
− | |<code>mxml</code> | + | |<code>mxml</code>||[[:en:MXML|MXML]] |
− | |MXML | ||
|- | |- | ||
− | |<code>mpasm</code> | + | |<code>mpasm</code>||[[:en:PIC microcontroller|Microchip Assembler]] |
− | |Microchip Assembler | ||
|- | |- | ||
− | |<code>mysql</code> | + | |<code>mysql</code>||[[:en:MySQL|MySQL]] |
− | |MySQL | ||
|- | |- | ||
− | |<code>nsis</code> | + | |<code>nsis</code>||[[:en:Nullsoft Scriptable Install System|Nullsoft Scriptable Install System (NSIS)]] |
− | |Nullsoft Scriptable Install System (NSIS) | ||
|- | |- | ||
− | |<code>objc</code> | + | |<code>objc</code>||[[:en:Objective-C|Objective-C]] |
− | |Objective-C | ||
|- | |- | ||
− | |<code>ocaml-brief</code> | + | |<code>ocaml-brief</code>||[[:en:Objective Caml|OCaml]] |
− | |OCaml | ||
|- | |- | ||
− | |<code>ocaml</code> | + | |<code>ocaml</code>||[[:en:Objective Caml|OCaml]] |
− | |OCaml | ||
|- | |- | ||
− | |<code>oobas</code> | + | |<code>oobas</code>||[[:en:StarOffice Basic|OpenOffice.org Basic]] |
− | |OpenOffice.org Basic | ||
|- | |- | ||
− | |<code>oracle8</code> | + | |<code>oracle8</code>||[[:en:PL/SQL|Oracle 8 SQL]] |
− | |Oracle 8 SQL | ||
|- | |- | ||
− | |<code>oracle11</code> | + | |<code>oracle11</code>||[[:en:PL/SQL|Oracle 11 SQL]] |
− | |Oracle 11 SQL | ||
|- | |- | ||
− | |<code>pascal</code> | + | |<code>pascal</code>||[[:en:Pascal (programming language)|Pascal]] |
− | |Pascal | ||
|- | |- | ||
− | |<code>per</code> | + | |<code>per</code>||per |
− | |per | ||
|- | |- | ||
− | |<code>perl</code> | + | |<code>perl</code>||[[:en:Perl|Perl]] |
− | |Perl | ||
|- | |- | ||
− | |<code>php-brief</code> | + | |<code>php-brief</code>||[[:en:PHP|PHP]] |
− | |PHP | ||
|- | |- | ||
− | |<code>php</code> | + | |<code>php</code>||[[:en:PHP|PHP]] |
− | |PHP | ||
|- | |- | ||
− | |<code>pixelbender</code> | + | |<code>pixelbender</code>||[[:en:Adobe_Pixel_Bender|Pixel Bender]] |
− | |Pixel Bender | ||
|- | |- | ||
− | |<code>plsql</code> | + | |<code>plsql</code>||[[:en:PL/SQL|PL/SQL]] |
− | |PL/SQL | ||
|- | |- | ||
− | |<code>povray</code> | + | |<code>povray</code>||[[:en:POV-Ray|Persistence of Vision Raytracer]] |
− | |Persistence of Vision Raytracer | ||
|- | |- | ||
− | |<code>powershell</code> | + | |<code>powershell</code>||[[:en:Windows_PowerShell|Windows PowerShell]] |
− | |Windows PowerShell | ||
|- | |- | ||
− | |<code>progress</code> | + | |<code>progress</code>||[[:en:OpenEdge_Advanced_Business_Language|OpenEdge Advanced Business Language]] |
− | |OpenEdge Advanced Business Language | ||
|- | |- | ||
− | |<code>prolog</code> | + | |<code>prolog</code>||[[:en:Prolog|Prolog]] |
− | |Prolog | ||
|- | |- | ||
− | |<code>providex</code> | + | |<code>providex</code>||[[:en:ProvideX|ProvideX]] |
− | |ProvideX | ||
|- | |- | ||
− | |<code>python</code> | + | |<code>python</code>||[[:en:Python (programming language)|Python]] |
− | |Python | ||
|- | |- | ||
− | |<code>qbasic</code> | + | |<code>qbasic</code>||[[:en:QBasic|QBasic/QuickBASIC]] |
− | |QBasic/QuickBASIC | ||
|- | |- | ||
− | |<code>rails</code> | + | |<code>rails</code>||[[:en:Ruby on Rails|Rails]] |
− | |Rails | ||
|- | |- | ||
− | |<code>reg</code> | + | |<code>reg</code>||[[:en:Windows Registry|Windows Registry]] |
− | |Windows Registry | ||
|- | |- | ||
− | |<code>robots</code> | + | |<code>robots</code>||[[:en:Robots Exclusion Standard|robots.txt]] |
− | |robots.txt | ||
|- | |- | ||
− | |<code>rsplus</code> | + | |<code>rsplus</code>||[[:en:R (programming language)|R]] |
− | |R | ||
|- | |- | ||
− | |<code>ruby</code> | + | |<code>ruby</code>||[[:en:Ruby (programming language)|Ruby]] |
− | |Ruby | ||
|- | |- | ||
− | |<code>sas</code> | + | |<code>sas</code>||[[:en:SAS System|SAS]] |
− | |SAS | ||
|- | |- | ||
− | |<code>scala</code> | + | |<code>scala</code>||[[:en:Scala_(programming_language)|Scala]] |
− | |Scala | ||
|- | |- | ||
− | |<code>scheme</code> | + | |<code>scheme</code>||[[:en:Scheme (programming language)|Scheme]] |
− | |Scheme | ||
|- | |- | ||
− | |<code>scilab</code> | + | |<code>scilab</code>||[[:en:Scilab|Scilab]] |
− | |Scilab | ||
|- | |- | ||
− | |<code>sdlbasic</code> | + | |<code>sdlbasic</code>||[[:en:SdlBasic|SdlBasic]] |
− | |SdlBasic | ||
|- | |- | ||
− | |<code>smalltalk</code> | + | |<code>smalltalk</code>||[[:en:Smalltalk|Smalltalk]] |
− | |Smalltalk | ||
|- | |- | ||
− | |<code>smarty</code> | + | |<code>smarty</code>||[[:en:Smarty|Smarty]] |
− | |Smarty | ||
|- | |- | ||
− | |<code>sql</code> | + | |<code>sql</code>||[[:en:SQL|SQL]] |
− | |SQL | ||
|- | |- | ||
− | |<code>tcl</code> | + | |<code>tcl</code>||[[:en:Tcl|Tcl]] |
− | |Tcl | ||
|- | |- | ||
− | |<code>teraterm</code> | + | |<code>teraterm</code>||[[:en:TeraTerm|Tera Term]] |
− | |Tera Term | ||
|- | |- | ||
− | |<code>text</code> | + | |<code>text</code>||[[:en:Plain text|Plain text]] |
− | |Plain text | ||
|- | |- | ||
− | |<code>thinbasic</code> | + | |<code>thinbasic</code>||[[:en:thinBasic|thinBasic]] |
− | |thinBasic | ||
|- | |- | ||
− | |<code>tsql</code> | + | |<code>tsql</code>||[[:en:Transact-SQL|Transact-SQL]] |
− | |Transact-SQL | ||
|- | |- | ||
− | |<code>typoscript</code> | + | |<code>typoscript</code>||[[:en:TYPO3|TypoScript]] |
− | |TypoScript | ||
|- | |- | ||
− | |<code>vala</code> | + | |<code>vala</code>||[[:en:Vala_(programming_language)|Vala]] |
− | |Vala | ||
|- | |- | ||
− | |<code>vb</code> | + | |<code>vb</code>||[[:en:Visual Basic|Visual Basic]] |
− | |Visual Basic | ||
|- | |- | ||
− | |<code>vbnet</code> | + | |<code>vbnet</code>||[[:en:Visual Basic .NET|Visual Basic .NET]] |
− | |Visual Basic .NET | ||
|- | |- | ||
− | |<code>verilog</code> | + | |<code>verilog</code>||[[:en:Verilog|Verilog]] |
− | |Verilog | ||
|- | |- | ||
− | |<code>vhdl</code> | + | |<code>vhdl</code>||[[:en:VHSIC Hardware Description Language|VHDL]] |
− | |VHDL | ||
|- | |- | ||
− | |<code>vim</code> | + | |<code>vim</code>||[[:en:Vimscript|Vimscript]] |
− | |Vimscript | ||
|- | |- | ||
− | |<code>visualfoxpro</code> | + | |<code>visualfoxpro</code>||[[:en:Visual FoxPro|Visual FoxPro]] |
− | |Visual FoxPro | ||
|- | |- | ||
− | |<code>visualprolog</code> | + | |<code>visualprolog</code>||[[:en:Visual_Prolog|Visual Prolog]] |
− | |Visual Prolog | ||
|- | |- | ||
− | |<code>whitespace</code> | + | |<code>whitespace</code>||[[:en:Whitespace_(programming_language)|Whitespace]] |
− | |Whitespace | ||
|- | |- | ||
− | |<code>winbatch</code> | + | |<code>winbatch</code>||[[:en:Winbatch|Winbatch]] |
− | |Winbatch | ||
|- | |- | ||
− | |<code>xml</code> | + | |<code>xml</code>||[[:en:XML|XML]] |
− | |XML | ||
|- | |- | ||
− | |<code>xorg_conf</code> | + | |<code>xorg_conf</code>||[[:en:Xorg.conf|Xorg.conf]] |
− | |Xorg.conf | ||
|- | |- | ||
− | |<code>xpp</code> | + | |<code>xpp</code>||[[:en:Microsoft_Dynamics_AX|X++]] |
− | |X++ | ||
|- | |- | ||
− | |<code>z80</code> | + | |<code>z80</code>||[[:en:Zilog Z80|ZiLOG Z80 Assembler]] |
− | |ZiLOG Z80 Assembler | ||
|} | |} | ||
+ | <div style="clear:both"></div> |
Revision as of 04:04, 2 January 2015
För att highlighta tex en php kod måste man använda source editorn och skriva
<syntaxhighlight lang="php">Kod här</syntaxhighlight>
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Alla språk som stöds.