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

Fix the advanced editor!

Started by AndreWalia, 03 January 2014 - 10:11 AM
AndreWalia #1
Posted 03 January 2014 - 11:11 AM
On an advanced computer if you do print("hi") in the editor it is red I am asking you to make stuff like print("He took a \"Turd\".") in the editor red
awsmazinggenius #2
Posted 03 January 2014 - 12:52 PM
Simply use a better editor (I'm referencing Sublime Text 3). You don't really want to be writing programs in that editor, do you?
Cranium #3
Posted 03 January 2014 - 01:33 PM
So you're asking to change the syntax highlighting for strings, so that a string containing double quotations is displayed properly?
For example:
print("Hello, this is red.") --#would highlight the string red
print("Hello, I call this color \"red\".") --#while syntatically correct, the syntax highlighter in the editor will only highlight the first and second set of quotations
You should be able to work around this yourself.
For example:
print('Hello, using "single quotations" to start and end my string, I am able to do what you need')
As far as I know, this should display the entire string as red like you want.
awsmazinggenius #4
Posted 03 January 2014 - 05:29 PM
Or fix the editor yourself. Or get ST3. It really is a good editor, and has a trial. For servers without HTTP, that you don't have access to the files on, you can use a program like AutoTyper or one of the other ones.