Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2012
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts

    CSS/HTML editor and whitespace compression...

    Hi,

    So far I've just been using notepad, but I'm used to indenting so that I can see which tags match each other. This puts a huge amount of whitespace in my files that bloat them. Is there a simple editor that saves files with as little whitespace as possible, yet makes viewing tags (which correspond to each other) easy?

    Thanks,

    Alan

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Alan, I'd advise you to install the free version of notepad++ plus the JSMIN and Tidy2 plugins. jsmin allows you to format JS code to give it a quick human readeable cleanup, or it can minimize it to reduce space etc.. the tidy2 plugin will format your html in the fashion you describe.

    as an alternative if you want to stick with plain ole notepad, you can use jsbeautifier.org to help format javascript code, and http://infohound.net/tidy/ for your html

    - also notepad++ has syntax highlighting, which will make your life much easier.

  • #3
    New Coder
    Join Date
    Jun 2012
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Hi,

    I installed the notepad++ and plugins. Do you mean use jsmin to minimize both html/css and use tidy2 to expand it back to something readable?

    tidy2 replaces   with a black inverted xA0 for some reason and messes it up - any idea why it is doing this?

    Thanks,

    Alan


  •  

    Posting Permissions

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