Syntax Highlighting is sometimes wrong with strings / quotes / quotation marks
Alexander Blach (Developer) 13 years ago • updated by G Han (Matebox in Motion) 8 years ago • 14 • 3 duplicates
In some cases the syntax coloring is wrong when there are nested quotation marks.
I've implemented a new syntax highlighter for Textastic 3.0 that fixes the issue. It will be available in the next update.
Customer support service by UserEcho
I don't think my coding is wrong. I'll feel so dumb if it is lol.
So, in your case, the syntax highlighter does the right thing when you insert a space after "echo" like this:
echo '<p align="center">'.$copyright.'</b>';
Sorry for the inconvenience.
The new highlighter with potential for code completion sounds exciting!
The current one gets very confused on Perl regular expressions with single quotes.
$str =~ s/\'/\\\'/g; # '# Convert all ' to \' '
I added the '# to get most of the comment rendered in grey and the trailing ' to make the number of quotes even so the following lines rendered correctly
$vRow =~ s/\!FOLDER_ID\!//cg;
after this line, no more Syntax is recognized :)