View Poll Results: Would you use an editor w/o syntax highlighting?
Never! Color-coded code is better than iced cream. 10 83.33%
I like syntax highlighting, but it's not that important. 2 16.67%
Doesn't make any difference to me. 0 0%
Voters: 12. You may not vote on this poll

Reply
How important is syntax highlighting?
Old 03-24-2007, 06:07 AM How important is syntax highlighting?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
I've been writing some software that started out as an FTP client to solve my annoyances with other ones, but has been evolving into a lot more. WebMeastro can edit text files at this point: html, css, .htaccess, and so on. But it's just black text on a white background, regardless of what language or code you have in there.

So far I've written all the code, but syntax highlighting in a text editing control is a little out of my league. I've played around with it a bit, but things flicker and slow down. There's a 3rd party component that does syntax highlighting and intellisense, but it's a little pricy. And I'm pretty devoted to the idea of making this the best freeware possible.

I know Notepad used to be the "guru's" web editor, in the '90s. But times have changed. Can people give me some ideas about how you edit your code, what's important, and what's not?
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
When You Register, These Ads Go Away!
Old 03-24-2007, 07:30 AM Re: How important is syntax highlighting?
chrishirst's Avatar
Super Moderator

Posts: 15,313
Location: Blackpool. UK
Syntax highlighting/colouring is handy for a quick check, especially when going back to earlier code (which of course is beautifully documented with comments )

Funnily enough I was playing with some RegEx patterns (VBScript) for code colouring in a web app I'm working on.

Have you looked at dp.SyntaxHighlighter ?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-25-2007, 05:09 AM Re: How important is syntax highlighting?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
That's some interesting stuff, and I'll have to see if some variant might work. I'm building Windows desktop software, so I'm not sure whether JS could be part of the equation ... so far the one I've been checking out is http://www.actiprosoftware.com/Produ...r/default.aspx ... expensive, but pretty nice.



But I really want this to be freeware. Maybe I'll eventually be able to figure out how to do it myself.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 03-25-2007, 11:53 AM Re: How important is syntax highlighting?
Christopher's Avatar
Iced Cap

Posts: 3,111
Location: Toronto, Ontario
Syntax highlighting is extremely important to me. While I can code without it, I won't be as efficient.

You might want to try Scintilla (I believe there is a .NET port/binding on their 'Related' page). It's an open source editing component with syntax coloring and folding, don't think it has intellisense though.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 03-25-2007, 02:17 PM Re: How important is syntax highlighting?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
What Christopher said. Syntax highlighting cut my development time by about 60% when I first discovered it way back in the dark ages of the Internet (2000) and I couldn't go back to anything else.

It's so much easier to find and isolate bugs, particularly within ASP...I assign a background colour to all quoted ASP code so that I can see exactly what's quoted and what isn't. A lot of the time, this helps me spot and fix a problem before I even test it.

Extended Find/Replace is also important too, if you can work that in to whatever you're trying to do. I don't know why, but I always associate those two things.

Oh...and you might want to edit your poll, bro.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-29-2007, 12:49 PM Re: How important is syntax highlighting?
willcode4beer's Avatar
Webmaster Talker

Posts: 696
Name: Paul Davis
Location: San Francisco
interesting question.
When I started writing code with VI, one of the first things I did was to set it up so that I had colored syntax highlighting. Even on windows, I used to use textpad, which also had it. Any but the most trivial text editor should have it (as well as regular expressions for search and replace).

Nowadays, I mostly use Eclipse and Websphere, for projects, and VI or textpad, for arbitrary files.
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 03-29-2007, 04:31 PM Re: How important is syntax highlighting?
chrishirst's Avatar
Super Moderator

Posts: 15,313
Location: Blackpool. UK
Quote:
Originally Posted by Adam
Oh...and you might want to edit your poll, bro.
Did that
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-30-2007, 10:05 PM Re: How important is syntax highlighting?
Extreme Talker

Posts: 166
First off, looks like an interesting program.
Will try it out when my next personal project starts.

As for syntax highlighting. I voted "never without it", even though if really necessary I could because of the way I indent my code. Currently I use TextPad and really like it. Intellisense I guess is the text that pops up while you type to tell you what you can insert? Love-slash-hate relationship. I use NetBeans for my Java and it has this and while it is useful, it also annoys the **** out of me sometimes, like you cannot just continue typing once oyur in the list, you need to click away first, or when I want to see my previous lines and it's hovering over them... I'd rather there'd be some kind of list at the side that is constantly updated, so I can look at it only if I have to, once it goes on to passing parameters, the hovering is fine though, since it is usually rather small then.
Back to syntax highlighting, if it's customiseable colour-wise, it's good. I like to use very opposite colours and then group similar things together with shades.
Another thing that is important to me, which TextPad, doesn't really fulfill is smart indentation. Optimally an options menu where you can just tell it to indent by three spaces everytime you do a new line inside of an open tag (or let us create a template, which I assume would be hard to define for all the languages related to web design...).
And when you hit new line, it should keep the indent, but if you hit backspace, even just once, it should delete the whole indent. If you hit delete to bring up the contents of the old line to this line, then go to the beginning of the line (indent included) and hit enter, it should remove the additional spaces that have been added to the indent.
I know, very anal, but it steals my precious time.

Ideally a "format code" option somewhere, so if you take over another project you can adjust it to your needs.
__________________
George Bush would never take me alive.
MJM_RDS is offline
Reply With Quote
View Public Profile
 
Old 04-05-2007, 07:45 AM Re: How important is syntax highlighting?
tex
Junior Talker

Posts: 2
Syntax Higlightning and Code Completition are the two most important features an IDE must have.

I usually use Eclipse for more compley tasks, and Scite for quick editing.
tex is offline
Reply With Quote
View Public Profile Visit tex's homepage!
 
Reply     « Reply to How important is syntax highlighting?
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17210 seconds with 13 queries