on 10-21-2005 1:45 PM
I've noticed the new fancy code highlighting thingy that has been recently added... Looks good!
But it has some trouble with commentling lines...
[code]//This goes wrong!
string something = "Some string";[/code]
This also goes wrong:[code]'VB escapes also trouble
Dim foo As String
foo = "Some string"[/code]
This goes all right:[code]/* Hmz, normally used for comments over multiple lines */
string something = "Some string";[/code]
Not recognized:[code]# PHP (and some other languages) syntax
$something = "Some string";[/code]
I'm also noticing that blank lines not work. If I want add a blank line between some pieces of code, the syntax highlighting removes them, causing all code to pile up to one big text. See below, I've added an blank line between the second and the thirth line. But it piles up :([code]/* Comment 1 */
string s1 = "Uhhh";
/*Comment 2 */
int x = 15;[/code]
Notice also that 'int' is recognized as a variable, (it turns blue) but 'string' and 'bool' (and I guess some more) are not.
Also "" is marked as string (red) but '' is recognized as something else (variable? blue).[code]/* Two strings? */
string a = "Nice string! :)";
string b = 'Not a string? :(';[/code]
Are you referring to using the BBCode "code"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.