SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: HTML Tidy

  1. #1
    SitePoint Guru mdumka's Avatar
    Join Date
    Jul 2003
    Location
    True North
    Posts
    642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML Tidy

    Hi There,

    I was wondering if anyone knows how to configure HTML tidy not to strip tags but just to format them (AKA Pretty Print) or a good app for just pretty printing.

    The reason I say this is I am coding HTML in a very unique enviroment with its own language. Every time I open a File in the IDE it reformats my code and it takes along time to get it back to normal.

    HTML tidy removes some of the tags that this IDE has generated but they are still needed.

    Thanks.

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which tags is HTML tidy removing that are still needed?
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Guru mdumka's Avatar
    Join Date
    Jul 2003
    Location
    True North
    Posts
    642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Kravvitz,

    For example:

    Code:
    <fragmentinstance id="fragment18"
    			                      fragmentid="GWL_LeftHandNavigation"
    			                      library="server:S4_002524"><!--$fragment18_ssArrowOnHighlightedImageName="s4_003684.gif",
    			             fragment18_ssSubArrowOnHighlightedImageName="s4_003684.gif",
    			             fragment18_ssSubArrowOffHighlightedImageName="s4_003684.gif",
    			             fragment18_ssHoverColor="",
    			             fragment18_ssStartLevel="1",
    			             fragment18_ssTextColor="",
    			             fragment18_ssArrowOnImageName="s4_003684.gif",
    			             fragment18_ssFocusColor="",
    			             fragment18_ssShowHome="false",
    			             fragment18_ssSubArrowOnImageName="s4_003684.gif",
    			             fragment18_ssNumLevels="10",
    			             fragment18_ssSubArrowOffImageName="s4_003684.gif",
    			             fragment18_ssImagesDirectory="groups/webassets/@public/documents/web_assets/",
    			             fragment18_ssArrowOffHighlightedImageName="s4_003684.gif",
    			             fragment18_ssClassName="GWL_LeftHandNavigation",
    			             fragment18_ssArrowOffImageName="s4_003684.gif" -->
    			</fragmentinstance>
    These are the kinds of things I need to keep and they are getting removed.

    Because of the CMS system my code gets messed up, All I want is a Pretty Printer or Code Beautifier.

    Know of Any?

    Thanks

  4. #4
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •