Recent Changes - Search:

edit SideBar

Gilgamesch

Edelsteine?

Enkidu?

Partien und Berichte

Regeln

Wiki

letzte Änderungen

... more

Inhaltsverzeichnis einer Seite, Post-It Notizen

Der hier eingefügte Wiki-Pfad führt durch alle Hinweise.
<< Inhaltsverzeichnisse von langen Seiten, Post-it Notizen | Inhaltsverzeichnis | Tabellen einf�gen >>

Sourceblock, Codeblock -> lesbare Listen

Mit dieser Erweiterung wird Source besser lesbar geschrieben. die Syntax ist

    
    (:source <parameters...> :) [=
    source code
    =]

oder

    
    (:source <parameters...> :)
    source code
    (:sourcend:)

mit den folgenden optionalen Parametern:

  • lang=<Sprache> um eine unterstützte Sprache auszuwählen
  • linenum{=n} aktiviert Zeilennummern, startet bei n
  • tabwidth=<n> Ein Tabulator wird durch n Blanks ersetzt (*)
  • header=<text> and footer=<text> Kopf- und Fußzeilen (*)
  • -trim der Input wird nicht automatisch in Form gebracht
    (*)Nur sinnvoll mit gesetztem Parameter lang=<language>.

Genutzt wird das Paket GeSHi, welches die folgenden Sprachen unterstützt:
actionscript, ada, apache, asm, asp, bash, c, c_mac, caddcl, cadlisp, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, mpasm, nsis, objc, oobas, oracle8, pascal, perl, php, php-brief, python, qbasic, smarty, sql, vb, vbnet, visualfoxpro, xml

(:source lang=css header="$HTMLStylesFmt['sourceblock'] = '" footer="';":) div.sourceblock { padding: 0.5em; border: 1px solid #808080; background-color: #F1F0ED; } div.sourceblock div { font-family: monospace; font-size: small; line-height: 1; } div.sourceblock div.head, div.sourceblock div.foot { font: italic medium serif; padding: 0.5em; }

und als Codeblock:

(:code lang=css header="$HTMLStylesFmt['codeblock'] = '" footer="';":) div.codeblock { padding: 0.5em; border: 1px solid #808080; background-color: #F1F0ED; } div.codeblock pre { font-family: monospace; font-size: small; line-height: 1; }

weiterführend der Link zum Originaleintrag der Erweiterung >> SourceBlock

Edit - History - Print - Recent Changes - Search
Page last modified on April 25, 2005, at 10:31 PM and visited 145 times