Is there a real editor for HTML, JavaScript, CSS?

Pythoneer

Thursday, June 23. 2005

Is there a real editor for HTML, JavaScript, CSS?

Before you say yes, of course, listen to what I want.
Lately I am doing a lot of Python programming, using WingIDE (I guess people who read this blog are already bored by me mentioning Python). And now that I am trying to write a little dashboard widget which is nothing more than HTML, JS and CSS (btw Apple also brought up the cool <canvas> element for their dashboard clock) I realize what I am missing.

The WingIDE has a feature that I call dive into. It let's you dive into the function/variable/class/etc. that your cursor is on. Actually it's exactly like the "step into" in your debugger. It simply goes to the place where this item (your cursor is on) is defined, also if it is located in another file than the current one or any of the opened files. It just opens the file and jumps to the proper line.

Another item the WingIDE has is the auto-bookmarking. That is simply like a click and "dive" history. When you dive into a piece of code and want to jump back to where you came from (as I mostly do), you simply jump back in history. Just like in a browser. In this IDE you can define the shortcuts for it, which are the same as in my browser, of course. This allows very well to "just look how the function does it" and keep on working. You simply dive into and go back in the history.

What does all that have to do with HTML, CSS and JavaScript editing?
A hell lot I think. I guess you got my point by now. First thing where I realized I miss it was a simple define in a JavaScript file. I could not find the variable definition in the current JS file. But where did it come from? Well, just go back to the HTML file where all the JS files get included and look at all the files (or use a search over all files). That can really cost some time. All I wanted was a dive into from the current file to get to the defintion.
The same thing about CSS. There is a tag <div class="popup">. Now I would like to know what the CSS define for popup looks like. I open the CSS file do a search for the class popup. Ok, quite feasible for simple setups, but it could be easier. Simply press the shortcut for dive into the CSS class and you get there at an instance, like a finger snap.

The drawbacks of providing this are of course the effort that it would cost to implement it. The pages might be very dynamic also the includes etc. And the web environment might had to be simulated (or used) in some cases to detect the actual connection between the different items and/or files. But hey we got enough power in our computers and the applications we develop become more high level every day. So tools like those should be basic development tools. Or not?
Just a thought ...

Posted by Wolfram in Programming at 23:11
Comments (3)
Trackbacks (0)

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

The problem of course is that nobody takes a programmers point of view to a multi-file project when it's done with css/html/javascript. "it's just a bunch of markup and a few handlers, right?" I found that generating interlinked documentation from the xslt templates already helped me a lot managing thes 150 or so templates ( ironically that was another xslt :D ).
#1 Florian on 2005-06-24 00:22 (Reply)
emacs
#2 Chris Smith on 2005-06-24 15:25 (Reply)
Vim has at least some of this features. For going to de definition of a function type gd (sort for "go definition"). For moving in the same file you can mark a place with m+"a letter" and go to these place with '+"a letter" Anyway if look for something you will see that vim does pretty much everything, you just have to know why but if you dive into it you will be rewarded.
#3 Jose Ortega on 2005-06-24 18:01 (Reply)

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

Calendar

Back February '10
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28

Quicksearch

Categories

  • XML JavaScript
  • XML Mac stuff
  • XML Miscellaneous
  • XML Missing or not found
  • XML Music
  • XML Private
  • XML Programming


All categories

Archives

  • February 2010
  • January 2010
  • December 2009
  • Recent...
  • Older...

supersized.org

Owner login

supersized s9y blog hosting
Free s9y blog!

Disclaimer

Syndicate This Blog

  • XML RSS 0.91 feed
  • XML RSS 1.0 feed
  • XML RSS 2.0 feed
  • ATOM/XML ATOM 0.3 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments

Top Referrers

casino.ru (4)
www.google.co.uk (3)
www.google.com (3)
www.google.be (1)
www.google.ca (1)
www.google.co.in (1)
www.google.cz (1)
www.google.de (1)
www.google.ie (1)

Top Exits

The owner of supersized.org is not responsible for any content on this page!