I'm writing in C so I can't use the raw string literals from C++.
So I have this code to kinda get around that...
1 2 3 4 5 6 7 8 9 | #define STR(x) #x char *ShaderCode = STR( #version 330 \n void main() { // Some shader code } ); |
Some things I noticed.
-Indenting a single line with "auto_tab_line_at_cursor" formats the code just like a regular block of code which is exactly what I'd want.
-Indenting a range with "auto_tab_range" formats the code by removing all the spaces at the start of each line.
-The "\n" is highlighted red even though this is completely legal.