mIRC Homepage
Posted By: StriderGU Syntax Highlight - 13/02/03 07:43 AM
Would be nice if the scripts in the editor was syntax highlighted. So for example if/esle/while was in one color, varables in one, and comments in one, and so on.
Posted By: The_Game Re: Syntax Highlight - 13/02/03 10:03 AM
lemme guess so any mistakes can be pointed out easier right? LOL Just kiddin ...although not a bad idea....would kinda make it a bit easier for making scripts.....
Posted By: Sabby Re: Syntax Highlight - 13/02/03 10:17 AM
I agree would be alot easier... but shouldnt come in with mIRC because the more stuff you put in mIRC the slower it gets.

Maybe it could come as a side program or something.
Posted By: StriderGU Re: Syntax Highlight - 13/02/03 04:05 PM
But you forget that computers tech gets double speed every 20months, and I dont think colors will slow down the viewing much. A option to turn it of is a good thing to have with those who run a 386 :tongue:. Well actually options is always good.
Posted By: starbucks_mafia Re: Syntax Highlight - 13/02/03 05:08 PM
The available technology may double every 20months, what people actually use is something ike 3 years behind that. However I don't think that syntax highlighting would have any effect on mIRC's overall speed.
Posted By: fraggle Re: Syntax Highlight - 13/02/03 08:54 PM
I KNOW I'm being fussy...

Quote:
The available technology may double every 20months, what people actually use is something ike 3 years behind that


Which means that what people uses ALSO doubles every 20 months (if they are consistently 3 years behind the cutting edge :P)
Posted By: Gon_ Re: Syntax Highlight - 13/02/03 10:35 PM
I can't see any reason why a syntax highlighter in the mIRC editor would ever slow mIRC, If it did slow mIRC on old computers.. im sure a simple, and inevitable "Enable syntax highlighting" option would fix it.
Posted By: ash Re: Syntax Highlight - 17/02/03 10:07 AM
I'd also like to see syntax highlighting in mIRC. It wouldn't make a noticeable difference in performance either, and like Gon said, it could be turned on and off.

What would the syntax be coloured like though? There's only a few types of constructs in mirc. %vars would be one colour, $identifiers another, and probably the brackets for identifiers would be coloured differently.. and commands. This wouldn't really be that helpful since all of that stuff is obvious and stands out. Syntax colouring is generally more useful in a language with quoted strings and different data types etc. One thing that might be kind of useful is colouring mirc commands one colour, user commands (aliases) another, and then unknown commands another.

None the less, it would be a nice aesthetic feature.
Posted By: landonsandor Re: Syntax Highlight - 17/02/03 12:04 PM
Actually, I think what people (not all by any means) really want it to do is error correct. They want it to tell them exactly which bracket is in error so they could quickly add/remove a bracket where needed. For example:

/blah {
stuff
more stuff
if (%stuff == $stuff) {
stuff1
stuff2
stuff3
}
halt

Which would then say: "Hey buddy, you forgot a bracket someplace with this code here". People can correct my interpretation cool Personally, I'd never use it with this machine since it would eat up valuable resources if Im doing a lot of mirc coding (if it worked the way Edit Pad Pro works - it takes a while to reset all the colors to their proper "hilited" format)
© mIRC Discussion Forums