Hilfe:Quelltext: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Justus (Diskussion | Beiträge) K hat „Quelltext“ nach „Hilfe:Quelltext“ verschoben |
Justus (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
= Verfügbare Sprachen = | |||
* C und C++ | |||
** c | |||
** cpp | |||
** c++ | |||
* C# | |||
** c# | |||
* CSS | |||
** css | |||
*Delphi und Pascal | |||
** delphi | |||
** pascal | |||
* Java | |||
** java | |||
* JavaScript | |||
** js | |||
** jscript | |||
** javascript | |||
* Python | |||
** python | |||
* PHP Hypertext Processor | |||
** php | |||
* Ruby (on Rails) | |||
** ruby | |||
** rails | |||
** ror | |||
* Structured Query Language | |||
** sql | |||
* Visual Basic (.Net) | |||
** vb | |||
** vb.net | |||
* XML und (X)HTML | |||
** xml | |||
** xhtml | |||
** xslt | |||
** html | |||
** xhtml | |||
= Beispiel = | |||
<pre> | |||
<codesyntax lang="c#"> | |||
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">l;"; | |||
// single line comments | |||
// second single line | |||
override protected void OnLoad(EventArgs e) | |||
{ | |||
if(Attributes["class"] != null) | |||
{ | |||
//_year.CssClass = Attributes["class"]; | |||
} | |||
// base.OnLoad(e); | |||
} | |||
</codesyntax> | |||
</pre> | |||
wird zu: | |||
<codesyntax lang="c#"> | <codesyntax lang="c#"> | ||
string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">l;"; | string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">l;"; |
Version vom 8. April 2009, 14:06 Uhr
Verfügbare Sprachen
- C und C++
- c
- cpp
- c++
- C#
- c#
- CSS
- css
- Delphi und Pascal
- delphi
- pascal
- Java
- java
- JavaScript
- js
- jscript
- javascript
- Python
- python
- PHP Hypertext Processor
- php
- Ruby (on Rails)
- ruby
- rails
- ror
- Structured Query Language
- sql
- Visual Basic (.Net)
- vb
- vb.net
- XML und (X)HTML
- xml
- xhtml
- xslt
- html
- xhtml
Beispiel
<codesyntax lang="c#"> string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">l;"; // single line comments // second single line override protected void OnLoad(EventArgs e) { if(Attributes["class"] != null) { //_year.CssClass = Attributes["class"]; } // base.OnLoad(e); } </codesyntax>
wird zu:
<codesyntax lang="c#"> string url = "<a href=\"" + someObj.getUrl() + "\" target=\"_blank\">l;"; // single line comments // second single line override protected void OnLoad(EventArgs e) {
if(Attributes["class"] != null) { //_year.CssClass = Attributes["class"]; } // base.OnLoad(e);
} </codesyntax>