Results 1 to 5 of 5
Apr 16, 2010, 14:35 #1
[php] tag doesn't like back slashes?
Check out this snippet, using the "code" tag:
/** * use some\long\name\space as mylib; */ use some\long\name\space as mylib;
* use some\long\name\space as mylib;
use some\long\name\space as mylib;
Apr 16, 2010, 15:05 #2
- Join Date
- Sep 2005
- Sydney, NSW, Australia
- 24 Post(s)
- 1 Thread(s)
Apr 16, 2010, 18:09 #3
Apr 16, 2010, 22:37 #4
- Join Date
- Nov 2004
- L2 cache.
- 0 Post(s)
- 0 Thread(s)
Yes, the native PHP 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();
[highlight=php] <?php use Foo\Bar\Baz as Quux; echo Quux\somefunc(); [/highlight]"Structure padding is the use of extraneous materials to
enhance the shape of a struct and make it more attractive
to members of the opposite struct. (see also 'struct
silicone.')" -- Eric Sosman
Apr 17, 2010, 03:35 #5
Very cool...I didn't know there was an alternative way to highlight syntax. Thanks!