Hilfe:Quelltext

Aus Das Sopra Wiki

Wechseln zu: Navigation, Suche

Mit

 <source lang="sprache"> code </source> 

kann Quelltext mit Syntaxhighlighting in Texte einfefügt werden. Seiten, die dieses Tag enthalten werden automatisch in die Kategorie Code-Beispiele aufgenommen.

Beispiel

<source lang="csharp">
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
// single line comments
// second single line
override protected void OnLoad(EventArgs e)
{
    if(Attributes["class"] != null)
    {
        //_year.CssClass = Attributes["class"];
    }
    //  base.OnLoad(e);
}
</source>

wird zu:

string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
// single line comments
// second single line
override protected void OnLoad(EventArgs e)
{
    if(Attributes["class"] != null)
    {
        //_year.CssClass = Attributes["class"];
    }
    //  base.OnLoad(e);
}


Verfügbare Sprachen

CodeLanguage
abapABAP
actionscriptActionScript
adaAda
apacheApache Log
applescriptAppleScript
asmASM
aspActive Server Pages (ASP)
autoitAutoIt
bashBash
basic4glBasic4GL
bfBrainfuck
blitzbasicBlitz BASIC
bnfBackus-Naur Form
cC
c_macC (Mac)
caddclAutoCAD DCL
cadlispAutoLISP
cfdgCFDG
cfmColdFusion
cilCommon Intermediate Language (CIL)
cobolCOBOL
cpp-qtC++ (Qt toolkit)
cppC++
csharpC#
cssCascading Style Sheets (CSS)
dD
delphiDelphi
diffDiff
divDIV
dosDOS batch file
dotDOT
eiffelEiffel
fortranFortran
freebasicFreeBASIC
generoGenero
gettextGNU internationalization (i18n) library
glslOpenGL Shading Language (GLSL)
gmlGame Maker Language (GML)
gnuplotgnuplot
groovyGroovy
haskellHaskell
hq9plusHQ9+
html4strictHTML
idlUno IDL
iniINI
innoInno
intercalINTERCAL
ioIo
javaJava
java5Java(TM) 2 Platform Standard Edition 5.0
javascriptJavaScript
kixtartKiXtart
klonecKlone C
klonecppKlone C++
latexLaTeX
lispLisp
lolcodeLOLCODE
lotusscriptLotusScript
luaLua
CodeLanguage
m68kMotorola 68000 Assembler
makemake
matlabMATLAB M
mircmIRC scripting language
mxmlMXML
mpasmMicrochip Assembler
mysqlMySQL
nsisNullsoft Scriptable Install System (NSIS)
objcObjective-C
ocaml-briefOCaml
ocamlOCaml
oobasOpenOffice.org Basic
oracle8Oracle 8 SQL
oracle11Oracle 11 SQL
pascalPascal
perper
perlPerl
php-briefPHP
phpPHP
pixelbenderPixel Bender
plsqlPL/SQL
povrayPersistence of Vision Raytracer
powershellWindows PowerShell
progressOpenEdge Advanced Business Language
prologProlog
providexProvideX
pythonPython
qbasicQBasic/QuickBASIC
railsRails
regWindows Registry
robotsrobots.txt
rubyRuby
sasSAS
scalaScala
schemeScheme
scilabScilab
sdlbasicSdlBasic
smalltalkSmalltalk
smartySmarty
sqlSQL
tclTcl
teratermTera Term
textPlain text
thinbasicthinBasic
tsqlTransact-SQL
typoscriptTypoScript
vbVisual Basic
vbnetVisual Basic .NET
verilogVerilog
vhdlVHDL
vimVimscript
visualfoxproVisual FoxPro
visualprologVisual Prolog
whitespaceWhitespace
winbatchWinbatch
xmlXML
xorg_confXorg.conf
xppX++
z80ZiLOG Z80 Assembler
Persönliche Werkzeuge