Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2013, 05:04 PM   PM User | #1
alank2
New Coder

 
Join Date: Jun 2012
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
alank2 is an unknown quantity at this point
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
alank2 is offline   Reply With Quote
Old 02-25-2013, 05:45 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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.
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 02-26-2013, 03:57 PM   PM User | #3
alank2
New Coder

 
Join Date: Jun 2012
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
alank2 is an unknown quantity at this point
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
alank2 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:55 PM.


Advertisement
Log in to turn off these ads.