cancel
Showing results for 
Search instead for 
Did you mean: 

Code syntax highlighting (some troubles)

Former Member
0 Kudos

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]

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Are you referring to using the BBCode "code"?

Former Member
0 Kudos

yes, the one with the brackets around it: [ code ]

Former Member
0 Kudos

I've emailed your post to sdn@sap.com so our support team can review and hopefully get things fixed up. Thanks for letting us know.