Difference between revisions of "Template talk:Code"

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

Revision as of 02:25, 6 February 2011


Code Formatting

To add formatting to code, we have a little code template that can be used like this:

Description You type You get
boxed code
{{Code|lang = Bash |
Code = bash$ ls -l
total 696
...
bash$ 
}}
Bash code
​bash$ ls -l total 696 ... bash$​

lang parameter is optional default = text.

{{Code|
Code = bash$ ls -l
total 696
...
bash$ 
}}

Code Parameter name is optional. You have to use in case there are wiki symbols involeved If you type

{{Code|​irc://<YouHdaIp>:26244/<channel>/?pass=<ZncUser>:<ZncUserPass>​}}

you get

bash code
{{{1}}}

But

{{Code|Code= ​irc://<YouHdaIp>:26244/<channel>/?pass=<ZncUser>:<ZncUserPass>​}}
bash code
​​irc://<YouHdaIp>:26244/<channel>/?pass=<ZncUser>:<ZncUserPass>​​


If you type

{{Code|
  Code= jQuery(document).ready(function(){ 
  jQuery("#slider").easySlider({
   auto: true,
   continuous: true,
   controlsShow: false,	
   prevText: '',
   nextText: '',
   pause: 3000
  });
 });​}}

you get

bash code
​jQuery(document).ready(function(){ jQuery("#slider").easySlider({ auto: true, continuous: true, controlsShow: false, prevText: '', nextText: '', pause: 3000 }); });​​


BUT

{{Code|lang=JavaScript|
  Code= jQuery(document).ready(function(){ 
  jQuery("#slider").easySlider({
   auto: true,
   continuous: true,
   controlsShow: false,	
   prevText: '',
   nextText: '',
   pause: 3000
  });
 });​}}
JavaScript code
jQuery(document).ready(function(){ jQuery("#slider").easySlider({ auto: true, continuous: true, controlsShow: false, prevText: '', nextText: '', pause: 3000 }); });​​


Code Language
abap ABAP
actionscript ActionScript
ada Ada (programming language)
apache Apache HTTP Server
applescript AppleScript
asm Assembly language
asp Active Server Pages
autoit AutoIt
bash Bash (Unix shell)
basic4gl Basic4GL
bf Brainfuck
blitzbasic Blitz BASIC
bnf Backus-Naur Form
c C (programming language)
c_mac C (Mac)
caddcl Dialog Control Language
cadlisp AutoLISP
cfdg CFDG
cfm ColdFusion Markup Language
cil Common Intermediate Language
cobol COBOL
cpp-qt Qt (toolkit)
cpp C++
csharp C Sharp (programming language)
css Cascading Style Sheets
d D (programming language)
delphi Delphi programming language
diff diff
div DIV
dos DOS batch file
dot DOT language
eiffel Eiffel (programming language)
fortran Fortran
freebasic FreeBASIC
genero Genero
gettext GNU gettext
glsl GLSL
gml Game Maker Language
gnuplot Gnuplot
groovy Groovy (programming language)
haskell Haskell (programming language)
hq9plus HQ9+
html4strict HTML
idl Universal Network Objects
ini INI file
inno Inno Setup
intercal INTERCAL
io Io (programming language)
java Java (programming language)
java5 Java (programming language)
javascript JavaScript
kixtart KiXtart
klonec Klone C
klonecpp Klone C++
latex LaTeX
lisp Lisp (programming language)
lolcode LOLCODE
lotusscript LotusScript
lua Lua (programming language)
Code Language
m68k Motorola 68000
make Make(software)
matlab MATLAB
mirc mIRC scripting language
mxml MXML
mpasm PIC microcontroller
mysql MySQL
nsis Nullsoft Scriptable Install System
objc Objective-C
ocaml-brief Objective Caml
ocaml Objective Caml
oobas StarOffice Basic
oracle8 PL/SQL
oracle11 PL/SQL
pascal Pascal (programming language)
per per
perl Perl
php-brief PHP
php PHP
pixelbender Adobe Pixel Bender
plsql PL/SQL
povray POV-Ray
powershell Windows PowerShell
progress OpenEdge Advanced Business Language
prolog Prolog
providex ProvideX
python Python (programming language)
qbasic QBasic
rails Ruby on Rails
reg Windows Registry
robots Robots Exclusion Standard
ruby Ruby (programming language)
rsplus R (programming language)
sas SAS System
scala Scala )
scheme Scheme (programming language)
scilab Scilab
sdlbasic SdlBasic
smalltalk Smalltalk
smarty Smarty
sql SQL
tcl Tcl
teraterm TeraTerm
text Plain text
thinbasic thinBasic
tsql Transact-SQL
typoscript TYPO3
vb Visual Basic
vbnet Visual Basic .NET
verilog Verilog
vhdl VHSIC Hardware Description Language
vim Vimscript
visualfoxpro Visual FoxPro
visualprolog Visual_Prolog
whitespace Whitespace programming language)
winbatch Winbatch
xml XML
xorg_conf Xorg.conf
xpp Microsoft Dynamics AX
z80 Zilog Z80