This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KaoS's profile picture

Edit syntax highlighting

Started by KaoS, 11 May 2013 - 03:27 PM
KaoS #1
Posted 11 May 2013 - 05:27 PM
In the edit program on advanced terminal the syntax highlighting does not see an empty string ("") correctly. it sees it as a single quote to start a string. Example is attached
Shnupbups #2
Posted 12 May 2013 - 01:37 AM
I haz noticed this, and it's annoying. But, again, too lazy to post…
KaoS #3
Posted 12 May 2013 - 06:03 AM
I haz noticed this, and it's annoying. But, again, too lazy to post…

I was recently chastised for not posting bugs on IRC :)/> figured I might as well
Smiley43210 #4
Posted 13 May 2013 - 09:02 PM
That, and block comments aren't highlighted.
superaxander #5
Posted 15 May 2013 - 04:44 AM
Has been bothering me for quite a while. But I thought it was already reported.
Engineer #6
Posted 19 May 2013 - 09:12 AM
That, and block comments aren't highlighted.
Block comments and block strings are not highlighted because the editor that comes with CC is line based. So if it finds a [[ it only highlights that line.
theoriginalbit #7
Posted 19 May 2013 - 09:22 AM
Block comments and block strings are not highlighted because the editor that comes with CC is line based. So if it finds a [[ it only highlights that line.
Which could be fixed with a simple boolean flag
Engineer #8
Posted 19 May 2013 - 10:53 AM
Block comments and block strings are not highlighted because the editor that comes with CC is line based. So if it finds a [[ it only highlights that line.
Which could be fixed with a simple boolean flag
Not quite, you need to know where the comment starts and where it ends. I have done this with re-indent, it was not hard to do. But to make it interactive, I have no clue how to go about that

You were right, after thinking about, a simple boolean should get the job done
jesusthekiller #9
Posted 19 May 2013 - 04:51 PM
Yeah. And block comments are broken too…
nutcase84 #10
Posted 19 May 2013 - 05:26 PM
Yeah. And block comments are broken too…

Didn't they already say that?
jesusthekiller #11
Posted 19 May 2013 - 05:29 PM
Oh, they did :P/>
Zudo #12
Posted 22 May 2013 - 03:10 AM
Lol this is a weird thing