test

progging - To wander about and beg; to seek food or other supplies by low arts; to seek for advantage by mean shift or tricks.
progging - Programmer slang for writing computer code.

mandag 29. august 2011

Syntax highlighting in blog

Even though this has nothing to do with Delphi progging, I add a little post to test different syntax highlighting methods in blogger.

SyntaxHighlighter
Format: <pre class="brush:delphi">...</pre>

type
  TMyClass = class;
  if i < 0 then begin
    with DMSystem do
      Table.Create();
  end;
google code prettify Format: <pre class="prettyprint">...</pre>
type
  TMyClass = class;
  if i < 0 then begin
    with DMSystem do
      Table.Create();
  end;
int foo=0; NSLog(@"%i", foo); 
Links:
http://stackoverflow.com/questions/1852537/how-to-use-prettify-with-blogger-blogspot
http://www.cyberack.com/2007/07/adding-syntax-highlighter-to-blogger.html (but remember to add link to the delphi script)

Some SyntaxHighlighter config examples:
Format: <pre class="brush: delphi; gutter: false; toolbar: false; highlight: 5">...</pre>
type
  TMyClass = class;
  if i < 0 then begin
    with DMSystem do
      Table.Create();
  end;

Ingen kommentarer:

Legg inn en kommentar