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