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