Hilfe:Quelltext: Unterschied zwischen den Versionen

Aus Das Sopra Wiki
KKeine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
Mit
Mit
  <pre class="html"> <codesyntax lang="sprache"> code </codesyntax> </pre>
  <pre class="html"> <source lang="sprache"> code </source> </pre>
kann Quelltext mit Syntaxhighlighting in Texte einfefügt werden. Seiten, die dieses Tag enthalten werden automatisch in die Kategorie [[:Kategorie:Code-Beispiele | Code-Beispiele]] aufgenommen.
kann Quelltext mit Syntaxhighlighting in Texte einfef�gt werden. Seiten, die dieses Tag enthalten werden automatisch in die Kategorie [[[[ategorie:Code-Beispiele | Code-Beispiele]]]]ufgenommen.


== Beispiel ==


<pre>
 
<codesyntax lang="c#">
==eispiel ==
 
 
 
<pre<source lang="csharp">
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
// single line comments
// single line comments
Zeile 18: Zeile 21:
     //  base.OnLoad(e);
     //  base.OnLoad(e);
}
}
</codesyntax>
</source>
</pre>
</</pre>
 
rd zu:
 


wird zu:


<codesyntax lang="c#">
<sourceang="csharp">
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\"&gtl;";
// single line comments
// single line comments
Zeile 35: Zeile 40:
     //  base.OnLoad(e);
     //  base.OnLoad(e);
}
}
</codesyntax>
</</source>
 
 
==erf�gbare Sprachen ==
 
{|
 
{ass="wikitable" style="float:left"
!Co
e||Language
|-
 
<c
d<>abap</co<e>||[[:e[[ABAP|ABAP]]
|]]
<c
d<>actionscript</co<e>||[[:e[[ActionScript|ActionScript]]
|]]
<c
d<>ada</co<e>||[[:e[[Ada (programming language)|Ada]]
|]]
<c
d<>apache</co<e>||[[:e[[Apache HTTP Server|Apache Log]]
|]]
<c
d<>applescript</co<e>||[[:e[[AppleScript|AppleScript]]
|]]
<c
d<>asm</co<e>||[[:e[[Assembly language|ASM]]
|]]
<c
d<>asp</co<e>||[[:e[[Active Server Pages|Active Server Pages (ASP)]]
|]]
<c
d<>autoit</co<e>||[[:e[[AutoIt|AutoIt]]
|]]
<c
d<>bash</co<e>||[[:e[[Bash|Bash]]
|]]
<c
d<>basic4gl</co<e>||[[:e[[Basic4GL|Basic4GL]]
|]]
<c
d<>bf</co<e>||[[:e[[Brainfuck|Brainfuck]]
|]]
<c
d<>blitzbasic</co<e>||[[:e[[Blitz BASIC|Blitz BASIC]]
|]]
<c
d<>bnf</co<e>||[[:e[[Backus-Naur Form|Backus-Naur Form]]
|]]
<c
d<>c</co<e>||[[:e[[C (programming language)|C]]
|]]
<c
d<>c_mac</co<e>||C (Mac)
|-
 
<c
d<>caddcl</co<e>||[[:e[[Dialog Control Language|AutoCAD DCL]]
|]]
<c
d<>cadlisp</co<e>||[[:e[[AutoLISP|AutoLISP]]
|]]
<c
d<>cfdg</co<e>||CFDG
|-
 
<c
d<>cfm</co<e>||[[:e[[ColdFusion|ColdFusion]]
|]]
<c
d<>cil</co<e>||[[:e[[Common_Intermediate_Language|Common Intermediate Language (CIL)]]
|]]
<c
d<>cobol</co<e>||[[:e[[COBOL|COBOL]]
|]]
<c
d<>cpp-qt</co<e>||[[:e[[Qt (toolkit)|C++ (Qt toolkit)]]
|]]
<c
d<>cpp</co<e>||[[:e[[C++|C++]]
|]]
<c
d<>csharp</co<e>||[[:e[[C Sharp (programming language)|C#]]
|]]
<c
d<>css</co<e>||[[:e[[Cascading Style Sheets|Cascading Style Sheets (CSS)]]
|]]
<c
d<>d</co<e>||[[:e[[D (programming language)|D]]
|]]
<c
d<>delphi</co<e>||[[:e[[Delphi programming language|Delphi]]
|]]
<c
d<>diff</co<e>||[[:e[[diff|Diff]]
|]]
<c
d<>div</co<e>||DIV
|-
 
<c
d<>dos</co<e>||[[:e[[DOS batch file|DOS batch file]]
|]]
<c
d<>dot</co<e>||[[:e[[DOT language|DOT]]
|]]
<c
d<>eiffel</co<e>||[[:e[[Eiffel (programming language)|Eiffel]]
|]]
<c
d<>fortran</co<e>||[[:e[[Fortran|Fortran]]
|]]
<c
d<>freebasic</co<e>||[[:e[[FreeBASIC|FreeBASIC]]
|]]
<c
d<>genero</co<e>||Genero
|-
 
<c
d<>gettext</co<e>||[[:e[[GNU_gettext|GNU internationalization (i18n) library]]
|]]
<c
d<>glsl</co<e>||[[:e[[GLSL|OpenGL Shading Language (GLSL)]]
|]]
<c
d<>gml</co<e>||[[:e[[Game Maker Language|Game Maker Language (GML)]]
|]]
<c
d<>gnuplot</co<e>||[[:e[[Gnuplot|gnuplot]]
|]]
<c
d<>groovy</co<e>||[[:e[[Groovy (programming language)|Groovy]]
|]]
<c
d<>haskell</co<e>||[[:e[[Haskell (programming language)|Haskell]]
|]]
<c
d<>hq9plus</co<e>||HQ9+
|-
 
<c
d<>html4strict</co<e>||[[:e[[HTML|HTML]]
|]]
<c
d<>idl</co<e>||[[:e[[Universal Network Objects|Uno IDL]]
|]]
<c
d<>ini</co<e>||[[:e[[INI file|INI]]
|]]
<c
d<>inno</co<e>||[[:e[[Inno Setup|Inno]]
|]]
<c
d<>intercal</co<e>||[[:e[[INTERCAL|INTERCAL]]
|]]
<c
d<>io</co<e>||[[:e[[Io (programming language)|Io]]
|]]
<c
d<>java</co<e>||[[:e[[Java (programming language)|Java]]
|]]
<c
d<>java5</co<e>||[[:e[[Java (programming language)|Java(TM) 2 Platform Standard Edition 5.0 ]]
|]]
<c
d<>javascript</co<e>||[[:e[[JavaScript|JavaScript]]
|]]
<c
d<>kixtart</co<e>||[[:e[[KiXtart|KiXtart]]
|]]
<c
d<>klonec</co<e>||Klone C
|-


<c
d<>klonecpp</co<e>||Klone C++
|-


== Verfügbare Sprachen ==
<c
d<>latex</co<e>||[[:e[[LaTeX|LaTeX]]
|]]
<c
d<>lisp</co<e>||[[:e[[Lisp (programming language)|Lisp]]
|]]
<c
d<>lolcode</co<e>||[[:e[[LOLCODE|LOLCODE]]
|]]
<c
d<>lotusscript</co<e>||[[:e[[LotusScript|LotusScript]]
|]]
<c
d<>lua</co<e>||[[:e[[Lua (programming language)|Lua]]
|]]
|
{ass="wikitable" style="float:left"
!Co
e||Language
|-


* C und C++
<c
** c
d<>m68k</co<e>||[[:e[[Motorola 68000|Motorola 68000 Assembler]]
** cpp
|]]
** c++
<c
* C#
d<>make</co<e>||[[:e[[Make_(software)|make]]
** c#
|]]
* CSS
<c
** css
d<>matlab</co<e>||[[:e[[MATLAB|MATLAB M]]
*Delphi und Pascal
|]]
** delphi
<c
** pascal
d<>mirc</co<e>||[[:e[[mIRC scripting language|mIRC scripting language]]
* Java
|]]
** java
<c
* JavaScript
d<>mxml</co<e>||[[:e[[MXML|MXML]]
** js
|]]
** jscript
<c
** javascript
d<>mpasm</co<e>||[[:e[[PIC microcontroller|Microchip Assembler]]
* Python
|]]
** python
<c
* PHP Hypertext Processor
d<>mysql</co<e>||[[:e[[MySQL|MySQL]]
** php
|]]
* Ruby (on Rails)
<c
** ruby
d<>nsis</co<e>||[[:e[[Nullsoft Scriptable Install System|Nullsoft Scriptable Install System (NSIS)]]
** rails
|]]
** ror
<c
* Structured Query Language
d<>objc</co<e>||[[:e[[Objective-C|Objective-C]]
** sql
|]]
* Visual Basic (.Net)
<c
** vb
d<>ocaml-brief</co<e>||[[:e[[Objective Caml|OCaml]]
** vb.net
|]]
* XML und (X)HTML
<c
** xml
d<>ocaml</co<e>||[[:e[[Objective Caml|OCaml]]
** xhtml
|]]
** xslt
<c
** html
d<>oobas</co<e>||[[:e[[StarOffice Basic|OpenOffice.org Basic]]
** xhtml
|]]
<c
d<>oracle8</co<e>||[[:e[[PL/SQL|Oracle 8 SQL]]
|]]
<c
d<>oracle11</co<e>||[[:e[[PL/SQL|Oracle 11 SQL]]
|]]
<c
d<>pascal</co<e>||[[:e[[Pascal (programming language)|Pascal]]
|]]
<c
d<>per</co<e>||per
|-


[[Kategorie:Wiki-Hilfe]] [[Kategorie:Code-Beispiele]]
<c
d<>perl</co<e>||[[:e[[Perl|Perl]]
|]]
<c
d<>php-brief</co<e>||[[:e[[PHP|PHP]]
|]]
<c
d<>php</co<e>||[[:e[[PHP|PHP]]
|]]
<c
d<>pixelbender</co<e>||[[:e[[Adobe_Pixel_Bender|Pixel Bender]]
|]]
<c
d<>plsql</co<e>||[[:e[[PL/SQL|PL/SQL]]
|]]
<c
d<>povray</co<e>||[[:e[[POV-Ray|Persistence of Vision Raytracer]]
|]]
<c
d<>powershell</co<e>||[[:e[[Windows_PowerShell|Windows PowerShell]]
|]]
<c
d<>progress</co<e>||[[:e[[OpenEdge_Advanced_Business_Language|OpenEdge Advanced Business Language]]
|]]
<c
d<>prolog</co<e>||[[:e[[Prolog|Prolog]]
|]]
<c
d<>providex</co<e>||[[:e[[ProvideX|ProvideX]]
|]]
<c
d<>python</co<e>||[[:e[[Python (programming language)|Python]]
|]]
<c
d<>qbasic</co<e>||[[:e[[QBasic|QBasic/QuickBASIC]]
|]]
<c
d<>rails</co<e>||[[:e[[Ruby on Rails|Rails]]
|]]
<c
d<>reg</co<e>||[[:e[[Windows Registry|Windows Registry]]
|]]
<c
d<>robots</co<e>||[[:e[[Robots Exclusion Standard|robots.txt]]
|]]
<c
d<>ruby</co<e>||[[:e[[Ruby (programming language)|Ruby]]
|]]
<c
d<>sas</co<e>||[[:e[[SAS System|SAS]]
|]]
<c
d<>scala</co<e>||[[:e[[Scala_(programming_language)|Scala]]
|]]
<c
d<>scheme</co<e>||[[:e[[Scheme (programming language)|Scheme]]
|]]
<c
d<>scilab</co<e>||[[:e[[Scilab|Scilab]]
|]]
<c
d<>sdlbasic</co<e>||[[:e[[SdlBasic|SdlBasic]]
|]]
<c
d<>smalltalk</co<e>||[[:e[[Smalltalk|Smalltalk]]
|]]
<c
d<>smarty</co<e>||[[:e[[Smarty|Smarty]]
|]]
<c
d<>sql</co<e>||[[:e[[SQL|SQL]]
|]]
<c
d<>tcl</co<e>||[[:e[[Tcl|Tcl]]
|]]
<c
d<>teraterm</co<e>||[[:e[[TeraTerm|Tera Term]]
|]]
<c
d<>text</co<e>||[[:e[[Plain text|Plain text]]
|]]
<c
d<>thinbasic</co<e>||[[:e[[thinBasic|thinBasic]]
|]]
<c
d<>tsql</co<e>||[[:e[[Transact-SQL|Transact-SQL]]
|]]
<c
d<>typoscript</co<e>||[[:e[[TYPO3|TypoScript]]
|]]
<c
d<>vb</co<e>||[[:e[[Visual Basic|Visual Basic]]
|]]
<c
d<>vbnet</co<e>||[[:e[[Visual Basic .NET|Visual Basic .NET]]
|]]
<c
d<>verilog</co<e>||[[:e[[Verilog|Verilog]]
|]]
<c
d<>vhdl</co<e>||[[:e[[VHSIC Hardware Description Language|VHDL]]
|]]
<c
d<>vim</co<e>||[[:e[[Vimscript|Vimscript]]
|]]
<c
d<>visualfoxpro</co<e>||[[:e[[Visual FoxPro|Visual FoxPro]]
|]]
<c
d<>visualprolog</co<e>||[[:e[[Visual_Prolog|Visual Prolog]]
|]]
<c
d<>whitespace</co<e>||[[:e[[Whitespace_(programming_language)|Whitespace]]
|]]
<c
d<>winbatch</co<e>||[[:e[[Winbatch|Winbatch]]
|]]
<c
d<>xml</co<e>||[[:e[[XML|XML]]
|]]
<c
d<>xorg_conf</co<e>||[[:e[[Xorg.conf|Xorg.conf]]
|]]
<c
d<>xpp</co<e>||[[:e[[Microsoft_Dynamics_AX|X++]]
|]]
<c
d<>z80</co<e>||[[:e[[Zilog Z80|ZiLOG Z80 Assembler]]
|]]
[K
[[gorie:Wiki-Hilfe]] []]a[[gorie:Code-Beispiele]]

Version vom 16. April 2009, 20:05 Uhr

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]]ufgenommen.


eispiel

<pre

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);
}

</

rd zu:


<sourceang="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>


erf�gbare Sprachen

{ass="wikitable" style="float:left" <c d<>abap</co<e>||[[:eABAP <c d<>caddcl</co<e>||[[:eAutoCAD DCL <c d<>cfm</co<e>||[[:eColdFusion <c d<>dos</co<e>||[[:eDOS batch file <c d<>gettext</co<e>||[[:eGNU internationalization (i18n) library <c d<>html4strict</co<e>||[[:eHTML <c d<>klonecpp</co<e>||Klone C++ <c d<>latex</co<e>||[[:eLaTeX <c d<>m68k</co<e>||[[:eMotorola 68000 Assembler <c d<>perl</co<e>||[[:ePerl
Co

e||Language

]]

<c d<>actionscript</co<e>||[[:eActionScript

]]

<c d<>ada</co<e>||[[:eAda

]]

<c d<>apache</co<e>||[[:eApache Log

]]

<c d<>applescript</co<e>||[[:eAppleScript

]]

<c d<>asm</co<e>||[[:eASM

]]

<c d<>asp</co<e>||[[:eActive Server Pages (ASP)

]]

<c d<>autoit</co<e>||[[:eAutoIt

]]

<c d<>bash</co<e>||[[:eBash

]]

<c d<>basic4gl</co<e>||[[:eBasic4GL

]]

<c d<>bf</co<e>||[[:eBrainfuck

]]

<c d<>blitzbasic</co<e>||[[:eBlitz BASIC

]]

<c d<>bnf</co<e>||[[:eBackus-Naur Form

]]

<c d<>c</co<e>||[[:eC

]]

<c d<>c_mac</co<e>||C (Mac)

]]

<c d<>cadlisp</co<e>||[[:eAutoLISP

]]

<c d<>cfdg</co<e>||CFDG

]]

<c d<>cil</co<e>||[[:eCommon Intermediate Language (CIL)

]]

<c d<>cobol</co<e>||[[:eCOBOL

]]

<c d<>cpp-qt</co<e>||[[:eC++ (Qt toolkit)

]]

<c d<>cpp</co<e>||[[:eC++

]]

<c d<>csharp</co<e>||[[:eC#

]]

<c d<>css</co<e>||[[:eCascading Style Sheets (CSS)

]]

<c d<>d</co<e>||[[:eD

]]

<c d<>delphi</co<e>||[[:eDelphi

]]

<c d<>diff</co<e>||[[:eDiff

]]

<c d<>div</co<e>||DIV

]]

<c d<>dot</co<e>||[[:eDOT

]]

<c d<>eiffel</co<e>||[[:eEiffel

]]

<c d<>fortran</co<e>||[[:eFortran

]]

<c d<>freebasic</co<e>||[[:eFreeBASIC

]]

<c d<>genero</co<e>||Genero

]]

<c d<>glsl</co<e>||[[:eOpenGL Shading Language (GLSL)

]]

<c d<>gml</co<e>||[[:eGame Maker Language (GML)

]]

<c d<>gnuplot</co<e>||[[:egnuplot

]]

<c d<>groovy</co<e>||[[:eGroovy

]]

<c d<>haskell</co<e>||[[:eHaskell

]]

<c d<>hq9plus</co<e>||HQ9+

]]

<c d<>idl</co<e>||[[:eUno IDL

]]

<c d<>ini</co<e>||[[:eINI

]]

<c d<>inno</co<e>||[[:eInno

]]

<c d<>intercal</co<e>||[[:eINTERCAL

]]

<c d<>io</co<e>||[[:eIo

]]

<c d<>java</co<e>||[[:eJava

]]

<c d<>java5</co<e>||[[:eJava(TM) 2 Platform Standard Edition 5.0

]]

<c d<>javascript</co<e>||[[:eJavaScript

]]

<c d<>kixtart</co<e>||[[:eKiXtart

]]

<c d<>klonec</co<e>||Klone C

]]

<c d<>lisp</co<e>||[[:eLisp

]]

<c d<>lolcode</co<e>||[[:eLOLCODE

]]

<c d<>lotusscript</co<e>||[[:eLotusScript

]]

<c d<>lua</co<e>||[[:eLua

]]

{ass="wikitable" style="float:left"

Co

e||Language

]]

<c d<>make</co<e>||[[:emake

]]

<c d<>matlab</co<e>||[[:eMATLAB M

]]

<c d<>mirc</co<e>||[[:emIRC scripting language

]]

<c d<>mxml</co<e>||[[:eMXML

]]

<c d<>mpasm</co<e>||[[:eMicrochip Assembler

]]

<c d<>mysql</co<e>||[[:eMySQL

]]

<c d<>nsis</co<e>||[[:eNullsoft Scriptable Install System (NSIS)

]]

<c d<>objc</co<e>||[[:eObjective-C

]]

<c d<>ocaml-brief</co<e>||[[:eOCaml

]]

<c d<>ocaml</co<e>||[[:eOCaml

]]

<c d<>oobas</co<e>||[[:eOpenOffice.org Basic

]]

<c d<>oracle8</co<e>||[[:eOracle 8 SQL

]]

<c d<>oracle11</co<e>||[[:eOracle 11 SQL

]]

<c d<>pascal</co<e>||[[:ePascal

]]

<c d<>per</co<e>||per

]]

<c d<>php-brief</co<e>||[[:ePHP

]]

<c d<>php</co<e>||[[:ePHP

]]

<c d<>pixelbender</co<e>||[[:ePixel Bender

]]

<c d<>plsql</co<e>||[[:ePL/SQL

]]

<c d<>povray</co<e>||[[:ePersistence of Vision Raytracer

]]

<c d<>powershell</co<e>||[[:eWindows PowerShell

]]

<c d<>progress</co<e>||[[:eOpenEdge Advanced Business Language

]]

<c d<>prolog</co<e>||[[:eProlog

]]

<c d<>providex</co<e>||[[:eProvideX

]]

<c d<>python</co<e>||[[:ePython

]]

<c d<>qbasic</co<e>||[[:eQBasic/QuickBASIC

]]

<c d<>rails</co<e>||[[:eRails

]]

<c d<>reg</co<e>||[[:eWindows Registry

]]

<c d<>robots</co<e>||[[:erobots.txt

]]

<c d<>ruby</co<e>||[[:eRuby

]]

<c d<>sas</co<e>||[[:eSAS

]]

<c d<>scala</co<e>||[[:eScala

]]

<c d<>scheme</co<e>||[[:eScheme

]]

<c d<>scilab</co<e>||[[:eScilab

]]

<c d<>sdlbasic</co<e>||[[:eSdlBasic

]]

<c d<>smalltalk</co<e>||[[:eSmalltalk

]]

<c d<>smarty</co<e>||[[:eSmarty

]]

<c d<>sql</co<e>||[[:eSQL

]]

<c d<>tcl</co<e>||[[:eTcl

]]

<c d<>teraterm</co<e>||[[:eTera Term

]]

<c d<>text</co<e>||[[:ePlain text

]]

<c d<>thinbasic</co<e>||[[:ethinBasic

]]

<c d<>tsql</co<e>||[[:eTransact-SQL

]]

<c d<>typoscript</co<e>||[[:eTypoScript

]]

<c d<>vb</co<e>||[[:eVisual Basic

]]

<c d<>vbnet</co<e>||[[:eVisual Basic .NET

]]

<c d<>verilog</co<e>||[[:eVerilog

]]

<c d<>vhdl</co<e>||[[:eVHDL

]]

<c d<>vim</co<e>||[[:eVimscript

]]

<c d<>visualfoxpro</co<e>||[[:eVisual FoxPro

]]

<c d<>visualprolog</co<e>||[[:eVisual Prolog

]]

<c d<>whitespace</co<e>||[[:eWhitespace

]]

<c d<>winbatch</co<e>||[[:eWinbatch

]]

<c d<>xml</co<e>||[[:eXML

]]

<c d<>xorg_conf</co<e>||[[:eXorg.conf

]]

<c d<>xpp</co<e>||[[:eX++

]]

<c d<>z80</co<e>||[[:eZiLOG Z80 Assembler

]]

[K gorie:Wiki-Hilfe []]agorie:Code-Beispiele