Posted 20 years ago
by Martin Lundberg
- Sweden
Hello once again! (I hope I'm not asking to much questions)
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:Now. A DocBlock have to be started with /** thats two stars instead of one that a normal multiline comment has. Then every line have to start with a * character or it will be ignored. The comment is ended as a normal multilinecomment.
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!
Peace out!
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!
Peace out!
Martin Lundberg
Student, Sweden