|
Post by Jo on Jan 13, 2014 19:10:17 GMT -5
Hi !
Since some Languages (AVR-Assembler, PHP) allow for 3 different ways to code Comments, I would suggest to implement a COMMENT3 Definition analogous to COMMENT1 & COMMENT2.
Although I would use only one type of Line-Comment (Semicolon ; in case of Asm) it would be nice to see the other type of Linecomment (//) when working on programs from another source. The Block-Comment /* */ already uses one COMMENTn Definition.
What do you think?
Regards Jo
|
|
|
Post by George on Jan 14, 2014 12:23:42 GMT -5
Hi Jo, Adding another one should not be too much effort. Sounds like just a bit of repetitive code in a few places.
However, this will probably wait till a next 'real' release, I don't want to hurry it into the upcoming fix release.
George
|
|
|
Post by bipedal on Oct 10, 2014 15:05:15 GMT -5
Why stop at 3? And why limit the 7th position to a number?
|
|
|
Post by George on Oct 18, 2014 12:24:09 GMT -5
bipedal: OK, why would you need a bunch more? What language uses more than 3 comment styles? Remember these are comment definitions for ONE language, not a list of all comment styles for all languages.
George
|
|
|
Post by biped on Oct 19, 2014 13:15:51 GMT -5
So maybe this is really about additional definitions for colorization? On the mainframe the data following Program Id & Author is highlighted differently than those keywords. Also columns 1 - 6 & 73 - 80 are highlighted differently than columns 7 - 72.
|
|
|
Post by George on Oct 20, 2014 9:33:28 GMT -5
Robert nailed it. To do more requires specific language parsing, especially fixed column stuff like COBOL line numbers etc. The method we've chosen is language neutral, it has no idea what language it's handling. Considering that, is does surprisingly well. Yes, it imposes limits (no multi line comments, etc.) but tackling full parsing of each language is just not in the works. George
|
|
|
Post by George on Dec 12, 2014 15:32:05 GMT -5
Jo: OK, prodded the color scan code. It now supports COMMENT1 thru COMMENT9. N.B. You do not need to use them incrementally, you can have COMMENT1, COMMENT4, COMMENT9 etc. You can get a test version by downloading www.SPFLite.com/Files/SPFLite814346.ex_ Rename it to SPFLite.exe and swap it in to the normal install folder. Please let me know it it seems OK to you. George
|
|
|
Post by Jo on Dec 12, 2014 17:42:51 GMT -5
yes, yes! This works fine for me, thx !
Jo
|
|
|
Post by George on Dec 13, 2014 11:50:53 GMT -5
Jo: Thanks for the confirmation. It will be included in the next official release.
George
|
|