I've got yet another problem, the thing I'm not sure if Im not supposed to ask you this or not. If this is nothing that has to do with SyntaxEditor then just tell me and I'll have to ask somewhere else.
My problem is this:
I want tags in a DocBlock to be highlighted different. A DocBlock is used by a script called phpDocumentor which takes comments out of php files and makes documentation. A Doc block looks like this:
/** * Short description * * Longer description. * * @author Martin Lundberg * @copyright Copyright (c) 2004-2005 Martin Lundberg. */
I know this much: I can create a DocBlockState which has the startscope /** and the endscope */.
But can I somehow make sure every line is started with a * (whitespace are allowed before the * to make it look better)?
Then I can make a new DocBlockTagState which has @ as start scope and Lineterminatormacro as endscope.
The problem is the making sure that the first non-whitespace character on every line is a *.
Hope I've not explained it to bad, thanks in advance for any answer!