Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Html Formatter

1356

Comments

  • Test:

    Header 1

    Header 2

    Header 3

    Header 4

    Header 5
    Header 6
    Test: <h1>Header 1</h1> <h2>Header 2</h2> <h3>Header 3</h3> <h4>Header 4</h4> <h5>Header 5</h5> <h6>Header 6</h6>
  • Interesting... here's the output for my above comment in fx2 win32

    <div class="CommentBody" id="CommentBody_66788">Test:<br /><h >Header 1</h><br /><h >Header 2</h><br /><h >Header 3</h><br /><h >Header 4</h><br /><h >Header 5</h><br /><h >Header 6</h><br /><br /><code >Test:<br /><h1>Header 1</h1><br /><h2>Header 2</h2><br /><h3>Header 3</h3><br /><h4>Header 4</h4><br /><h5>Header 5</h5><br /><h6>Header 6</h6></code> </div>

    And readable
    <div class="CommentBody" id="CommentBody_66788">Test:<br /> <h >Header 1</h><br /> <h >Header 2</h><br /> <h >Header 3</h><br /> <h >Header 4</h><br /> <h >Header 5</h><br /> <h >Header 6</h><br /> <br /> <code >Test:<br /> <h1>Header 1</h1><br /> <h2>Header 2</h2><br /> <h3>Header 3</h3><br /> <h4>Header 4</h4><br /> <h5>Header 5</h5><br /> <h6>Header 6</h6></code> </div>
  • Yeah, for me it's very the headers are very important :( Any thoughts?
  • What about span?
    <span style='font-size:1.3em;'>What about span?</span>
    Or span with predefined classes?
    <span class='h1'>Or span with predefined classes?</span>
  • Uploaded version 2.0.6 of Html Formatter.
  • oops, I managed to forget to allow digits in the node names. fixed now.
  • heh all fixed. good job :)
  • Good catch cw, nice fix SirNot :)
  • It doesn't work with comments tags like
    <!--more-->
    it displays it as text, rather than hide it from display

    Actually it should do a text replacement convert the more text into an anchor
    So take this /<!--more(.*?)-->/
    and convert it into this<a id="more" name="more"></a>
    also support for will be nice. it should generate links like &Page=2
  • Yes, it is working now! Thanks a lot!
  • Uploaded version 2.1 of Html Formatter.
  • formatter now allows html comments in posts, to accomodate for other extensions, special needs, whatever. like most features, it can be easily turned off by setting the boolean value of the definition HTML_ALLOW_COMMENTS to 0.
  • thanks Sirnot. :)
  • Thanks.
  • Uploaded version 2.2 of Html Formatter.
  • Uploaded version 2.2 of Html Formatter.
  • so, what's new? :)
  • nothing :-P there was a small hole in how it handled tag names
  • <blockquote><cite>Stanzi1791</cite> The problem I'm having with AutoP is that it adds <p> around the content of a quote like this: (Don't pay attention to the content of the quotes, I had to quote something.. ;)) <a href="http://www.vanslageren.nl/marleen/images/quotes1.jpg" >http://www.vanslageren.nl/marleen/images/quotes1.jpg</a></blockquote>
    When the above code is put into a comment it comes out like so...
    Stanzi1791
    The problem I'm having with AutoP is that it adds <p> around the content of a quote like this:
    (Don't pay attention to the content of the quotes, I had to quote something.. ;))
    http://www.vanslageren.nl/marleen/images/quotes1.jpg
    But with the newline option OFF in HTML Formatter 2.2 the actual code is like below, with spaces added before the > to various opening tags. Why is this?

    <blockquote ><cite >Stanzi1791</cite> The problem I'm having with AutoP is that it adds <p> around the content of a quote like this: (Don't pay attention to the content of the quotes, I had to quote something.. ;)) <a href="http://www.vanslageren.nl/marleen/images/quotes1.jpg" >http://www.vanslageren.nl/marleen/images/quotes1.jpg</a></blockquote>

    From memory I think this happens with lists as well.
  • that will always happen to (open) tags; the space occurs becuase of how the tags are 'reassembled.'
Sign In or Register to comment.