Hilfe:Quelltext

Aus Das Sopra Wiki

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>

blubb