[php] tag doesn't like back slashes?

Check out this snippet, using the “code” tag:


/**
 * use some\\long\
ame\\space as mylib;
 */

use some\\long\
ame\\space as mylib;

…compared to the exact same snippet in a “php” code block:


/**
 * use some\\long\
ame\\space as mylib;
 */

use some\\long\
ame\\space as mylib;

SP’s syntax highlighter seems to strip backslashes from PHP code, though it leaves them in the comments.

\ escapes the character following eg.
= new line, \ = tab, \\ = backslash

Nope, already tried that:


/**
 * use some\\\\long\\\
ame\\\\space as mylib;
 */

use some\\\\long\\\
ame\\\\space as mylib;


/**
 * use some\\\\long\\\
ame\\\\space as mylib;
 */

use some\\\\long\\\
ame\\\\space as mylib;

…any other ideas?

Yes, the native PHP [highlight_string](http://php.net/highlight_string)(), for example, works as expected. vBulletin, however, seems to replace one or more backslashes with none.

However, you can use the other syntax highlighter (which I presume is GeSHi)

<?php

use Foo\\Bar\\Baz as Quux;

echo Quux\\somefunc();

Actual BBCode:

[noparse]
```php

&lt;?php

use Foo\\Bar\\Baz as Quux;

echo Quux\\somefunc();

[/noparse]

Very cool…I didn’t know there was an alternative way to highlight syntax. Thanks!