Hilfe:Quelltext: Unterschied zwischen den Versionen
Aus Das Sopra Wiki
Justus (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Justus (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
<pre class="html"> <codesyntax lang="sprache"> code </codesyntax> </pre> | <pre class="html"> <codesyntax lang="sprache"> code </codesyntax> </pre> | ||
kann Quelltext mit Syntaxhighlighting in Texte einfegügt werden. | kann Quelltext mit Syntaxhighlighting in Texte einfegügt werden. | ||
== 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#"> | |||
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> | |||
== Verfügbare Sprachen == | == Verfügbare Sprachen == | ||
| Zeile 41: | Zeile 76: | ||
** html | ** html | ||
** xhtml | ** xhtml | ||
[[Kategorie:Wiki-Hilfe]] [[Kategorie:Code-Beispiele]] | [[Kategorie:Wiki-Hilfe]] [[Kategorie:Code-Beispiele]] | ||
