ASP.NET

Code-Highlighter für 12 Sprachen

Jeder Web-Master, der auf seinen Seiten Code veröffentlicht, steht irgendwann vor der Frage, wie er diesen Code am besten präsentiert. Zum einen muss er sich vom restlichen Text abheben und zum anderen muss er auch leicht lesbar sein. Sinnvoll wäre, ihn so darzustellen, wie es die verschiedenen Editoren auch tun: mit farbig hervorgehobener Syntax. Stellt sich nur die Frage, wie man dieses Syntax-Highlighting ohne großen Aufwand hinbekommt.

Alexander Zeitler hat sich des Themas angenommen und auf seiner Seite alexonasp.net einen Code-Highlighter veröffentlicht, der den Code von 12 verschiedenen Sprachen verarbeiten kann:

  • HTML
  • XML
  • CSS
  • Jscript
  • Java
  • C#
  • VB.NET
  • VBScript
  • SQL
  • Perl
  • Python
  • INI-Dateien



Die Ergebnisse sind visuell sehr ansprechend, zumal man optional noch Zeilennummern generieren lassen kann. Der generierte HTML-Code besteht vor allem aus SPAN-Elementen, die mit STYLE-Attributen versehen sind. Bei langen Code-Passagen wird es im HTML-Code daher auch etwas unübersichtlich, was aber nicht weiter stört, solange man keine Änderungen vornehmen muss.
kick it on dotnet-kicks.de AddThis Trackback-Url...

29 Kommentare bislang...

  • Snow boots how to mix: snow boots is the best mix of ultra-shorts and short skirts, see you dare to wear not wearing. You can also wear hot pants and boots pants. Then is the pencil pants. Can be used with all the clothes are loose sweaters and sweater. There waist shirt. We can try Oh! If wearing a down jacket will look good in the tube.

    29
    cheap ugg boots  : Freitag, 30. Dezember 2011 09:32
  • Desert boots series (Desert Boot Collection) will be low-key and fashion to the extreme interpretation.
    28
    cheap ugg boots : Mittwoch, 28. Dezember 2011 09:46
  • Plaid jacket must not be less this winter, the lovely red and black grid on a cotton hat is designed with flash OL can not miss the lovely saint, to catch Slim jeans leg and both were very casual style, to catch the double snow boots snow boots immune to cute. Cute sweater to be accompanied by the lovely snow boots considered dissonant, with the whole of this plush texture is full of very cute thin, denim shorts are also down flange, a more general increase in degree of sweetness, as you like can waistcoat and then take pieces of mixed colors, warm and repairing. Loose thick cardigan sweater keep you from fall to winter wear, easy to take very practical, solid style of unassuming fashion, it was young people's vigor, and snow boots with leggings is that it's a great match, so you stand the influx of people change!
    27
    cheap ugg  : Donnerstag, 22. Dezember 2011 14:30
  • then gradually became popular in Australia. In the past, the Australian Air Force, first discovered the snow boots (Ugly Boots) of the wonderful features, it is the wool inside, the outside is very light tanning too soft sheepskin,
    26
    ugg boots for sale : Mittwoch, 21. Dezember 2011 08:51
  • ugg from the 70 "'s creation, after 40 years of trials, continue with" Naomi simple "fashion look to refresh the content of the deep snow boots from the popular Australian native, to sweep France, Germany, Italy and other European countries, and then to sweep the United States, Asia countries, ugg has become the undisputed international fashion snow boots big line.
    25
    uggs 2011 : Freitag, 16. Dezember 2011 02:18

Dein Kommentar hierzu...


Kommentar-Feed für diesen Beitrag
Gravatare werden unterstützt .:. eMail-Adressen werden nicht veröffentlicht
 

RSS-Feed

Die URL des Standard-Newsfeed von zerbit.de lautet:

http://www.zerbit.de/rssfeed.aspx

Login


 

 

Statistik



kürzlich kommentiert

Beitrag 169

  • Datum: 16.03.2006
    Kategorie: ASP.NET
    Zugriffe: 1.586
    Kommentare: 29
    Trackbacks: 0

Letzte Beiträge

Kategorien

Buttons & More

Blog-Roll

Banner Piraten-Partei