Hilfe:Quelltext: Unterschied zwischen den Versionen

Aus Das Sopra Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 72: Zeile 72:
</codesyntax>
</codesyntax>


[[Kategorie:Wiki-Hilfe]] [[Kategorie:CodeBeispiel]] [[Kategorie:CodeBeispiel]]
[[Kategorie:Wiki-Hilfe]] [[Kategorie:CodeBeispiel]]

Version vom 9. April 2009, 16:17 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\"&gtl;";
// 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\"&gtl;"; // single line comments // second single line override protected void OnLoad(EventArgs e) {

   if(Attributes["class"] != null)
   {
       //_year.CssClass = Attributes["class"];
   }
   //  base.OnLoad(e);

} </codesyntax>