帮助:代码渲染
出自Meshal Lite
(修订版本间的差异)
小 (已保护“帮助:代码渲染” ([edit=sysop] (无期) [move=sysop] (无期))) |
|||
(由1名用户作出的8个中途修订版本未被显示) | |||
第1行: | 第1行: | ||
− | [[category: | + | [[category:编辑语法]] |
这个标签用来渲染代码。 | 这个标签用来渲染代码。 | ||
− | + | <code><nowiki> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
<source lang="Codes Language"> | <source lang="Codes Language"> | ||
...codes... | ...codes... | ||
− | |||
</source> | </source> | ||
+ | </nowiki></code> | ||
+ | |||
+ | {{block|代码语言类型:<code>lang</code>| | ||
+ | 这个参数控制使用什么语言的渲染器,支持的种类如下: | ||
− | + | *abap:ABAP | |
− | + | *actionscript:ActionScript | |
− | + | *ada:Ada | |
− | + | *apache:Apache Configuration | |
− | + | *applescript:AppleScript | |
− | + | *asm:ASM | |
− | + | *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 | |
− | + | *genero:Genero | |
− | + | *gettext:GNU internationalization (i18n) library | |
− | + | *glsl:OpenGL Shading Language (GLSL) | |
− | + | *gml:Game Maker Language (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 | |
− | + | *lotusscript:LotusScript | |
− | + | *lua:Lua | |
− | + | *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 | |
− | + | *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 | |
− | + | *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 | |
− | + | }} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
在2020年4月1日 (三) 01:25的最新修订版本
这个标签用来渲染代码。
<source lang="Codes Language">
...codes...
</source>
代码语言类型:
lang
这个参数控制使用什么语言的渲染器,支持的种类如下:
- abap:ABAP
- actionscript:ActionScript
- ada:Ada
- apache:Apache Configuration
- applescript:AppleScript
- asm:ASM
- 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
- genero:Genero
- gettext:GNU internationalization (i18n) library
- glsl:OpenGL Shading Language (GLSL)
- gml:Game Maker Language (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
- lotusscript:LotusScript
- lua:Lua
- 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
- 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
- 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