Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • [JS] Recommend beautifier, and other tools
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Add Reply
[JS] Recommend beautifier, and other tools
Topic Started: Mar 2 2010, 10:32 PM (103 Views)
sylas Mar 2 2010, 10:32 PM Post #1
Member Avatar


Posts:
10
Group:
Member
Member
#3,712
Joined:
Mar 1, 2010
What beautifiers (indent programs) do coders recommend for working with javascript?

I am also interested in suggestions for editors, debuggers, etc; but Tools of the Trade by Reid seems to have that pretty well covered. I have obtained notepad++ on his recommendation.

Now I need an indent tool, please!
I am in the process of setting up Climate Physics. Not really open for business yet, but open for anyone to give feedback, suggestions and help.
Offline Profile Quote Post Goto Top
 
Reid Mar 3 2010, 08:29 AM Post #2
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Coding language
JavaScript
http://javascript.about.com/library/blformat.htm

Doesn't always work that well, and indeed it's quite ugly, but it does at least get the basics done

Also, if you want to use a more programming oriented tool (with a much, much sharper learning curve) use Vim.

There were four reasons I swapped to vim:

1. I use Linux, so Notepad++ had to go through Wine, which made it irritating and ugly

2. Vim handles indenting with spaces much better than Notepad++; primarily, Notepad++ can indent with spaces instead of tabs, but when you backspace, you have to backspace through all of the spaces on notepad++... vim's backspace treats 4 spaces as a tab

3. Vim supports smart indention; it actually indents for you. Notepad++ will keep your current level of indention, but you have to manually hit the tab key to move in a level.

4. Vim is a lot more powerful. I can autoindent an entire script in just a few keystrokes. I can go to the beginning and end of files using the gg and G commands. I can save and then quit just by typing :wq. Vim in general has such a huge learning curve, but in reality, it's so worth it.
Posted Image
Offline Profile Quote Post Goto Top
 
sylas Mar 3 2010, 03:34 PM Post #3
Member Avatar


Posts:
10
Group:
Member
Member
#3,712
Joined:
Mar 1, 2010
Reid
Mar 3 2010, 08:29 AM
http://javascript.about.com/library/blformat.htm

Doesn't always work that well, and indeed it's quite ugly, but it does at least get the basics done

Also, if you want to use a more programming oriented tool (with a much, much sharper learning curve) use Vim.


Thanks Reid. I'm a vi user from way back... started out computing on UNIX back in the 1970s. So vim might be my best option. These days I use windows XP and have a cygwin UNIX available for when I want to go back to the good old days of text based UNIX stuff. I have never actually got around to using Linux, but I don't want to reorganize my whole computer right now. I have a week to learn about ZB and get my new board ready to roll.
Edited by sylas, Mar 3 2010, 03:34 PM.
I am in the process of setting up Climate Physics. Not really open for business yet, but open for anyone to give feedback, suggestions and help.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Add Reply

Track Topic · E-mail Topic Time: 7:17 PM Sep 9
Hosted for free by ZetaBoards