Wiki
Выделение кода
Выделение кода
Код на вики страницах можно выделить двумя способами:
(:source PARAMETERS... :) [@
source code
@]
или:
(:source PARAMETERS... :)
source code
(:sourceend:)
для большей информации смотреть http://www.pmwiki.org/wiki/Cookbook/SourceBlock
Например для выделения JS кода:
(:source lang=javascript :) [@
document.write("Hello!");
@]
document.write("Hello!");
Список доступных языков:
Geshi Version: 1.0.8.2
| lang | full name |
|---|---|
abap | ABAP |
actionscript | ActionScript |
actionscript3 | ActionScript 3 |
ada | Ada |
apache | Apache configuration |
applescript | AppleScript |
apt_sources | Apt sources |
asm | ASM |
asp | ASP |
autoit | AutoIt |
avisynth | AviSynth |
bash | Bash |
basic4gl | Basic4GL |
bf | Brainfuck |
blitzbasic | BlitzBasic |
bnf | bnf |
boo | Boo |
c | C |
caddcl | CAD DCL |
cadlisp | CAD Lisp |
cfdg | CFDG |
cfm | ColdFusion |
cil | CIL |
cobol | COBOL |
cpp-qt | C++ (QT) |
cpp | C++ |
csharp | C# |
css | CSS |
c_mac | C (Mac) |
d | D |
delphi | Delphi |
diff | Diff |
div | DIV |
dos | DOS |
dot | dot |
eiffel | Eiffel |
email | eMail (mbox) |
fortran | Fortran |
freebasic | FreeBasic |
genero | genero |
gettext | GNU Gettext |
glsl | glSlang |
gml | GML |
gnuplot | Gnuplot |
groovy | Groovy |
haskell | Haskell |
hq9plus | HQ9+ |
html4strict | HTML |
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 |
lotusformulas | Lotus Notes @Formulas |
lotusscript | LotusScript |
lscript | LScript |
lua | Lua |
m68k | Motorola 68000 Assembler |
make | GNU make |
matlab | Matlab M |
mirc | mIRC Scripting |
mpasm | Microchip Assembler |
mxml | MXML |
mysql | MySQL |
nsis | NSIS |
objc | Objective-C |
ocaml-brief | OCaml (brief) |
ocaml | OCaml |
oobas | OpenOffice.org Basic |
oracle11 | Oracle 11 SQL |
oracle8 | Oracle 8 SQL |
pascal | Pascal |
per | per |
perl | Perl |
php-brief | PHP (brief) |
php | PHP |
pic16 | PIC16 |
pixelbender | Pixel Bender 1.0 |
plsql | PL/SQL |
povray | POVRAY |
powershell | posh |
progress | Progress |
prolog | Prolog |
providex | ProvideX |
python | Python |
qbasic | QBasic/QuickBASIC |
rails | Rails |
reg | Microsoft Registry |
robots | robots.txt |
ruby | Ruby |
sas | SAS |
scala | Scala |
scheme | Scheme |
scilab | SciLab |
sdlbasic | sdlBasic |
smalltalk | Smalltalk |
smarty | Smarty |
sql | SQL |
tcl | TCL |
teraterm | Tera Term Macro |
text | Text |
thinbasic | thinBasic |
tsql | T-SQL |
typoscript | TypoScript |
vb | Visual Basic |
vbnet | vb.net |
verilog | Verilog |
vhdl | VHDL |
vim | Vim Script |
visualfoxpro | Visual Fox Pro |
visualprolog | Visual Prolog |
whitespace | Whitespace |
winbatch | Winbatch |
xml | XML |
xorg_conf | Xorg configuration |
xpp | X++ |
z80 | ZiLOG Z80 Assembler |