SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Muller2's Avatar
    Join Date
    Feb 2005
    Location
    Oxford, UK
    Posts
    522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display code (Line Number, Indent etc)

    Hi,

    does anyone know if there are any decent tutorials/articles or has anyone got any css to display code with the line number, and preferably indented (formatted) too.

    Thanks,

    Al

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <ol>
      <li><pre><code>function foo() {</code></pre></li>
      <li><pre><code>    return true;</code></pre></li>
      <li><pre><code>}</code></pre></li>
    </ol>
    Birnam wood is come to Dunsinane

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,516
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Theres a tool here but I don't know if its what you want or if its any good

    http://www.manoli.net/csharpformat/format.aspx


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •