-
lomecb committed revision 1112 to the Colorer Library SVN repository, changing 4 files.
2009-11-02 20:33:04 UTC by lomecb
-
lomecb committed revision 1111 to the Colorer Library SVN repository, changing 3 files.
2009-11-02 20:24:12 UTC by lomecb
-
formirror committed revision 1110 to the Colorer Library SVN repository, changing 1 files.
2009-09-24 16:55:25 UTC by formirror
-
Thanks for the clarification... it is good to know that I wasn't just overlooking something.
thanks
Steve.
2009-09-21 20:21:14 UTC by srn253e
-
Steve,
The only way to do this is to incorporate such a functionality into colorer's code.
Unfortunately eclipse is not so flexible to allow integration of third party components into editors. Each Editor is a separate plugin with its own features.
There could be a chance that some plugin exists, which can add templates into any eclipse's editor, but I'm not aware of such plugin.
And...
2009-09-21 09:55:14 UTC by lomecb
-
so i created a hrc for my business basic language and i am up and running in eclipse and life is good...
but.... in my old editor i could create code templates for commonly used code blocks... i see eclipse has this feature in its java, javascript language preferences... is there a way i can do this in eclipse-colorer for my language?
thanks
Steve.
2009-09-20 18:47:44 UTC by srn253e
-
Damn my code got scrambled :(
But looks like you got it anyway.
jonib.
2009-09-20 16:51:25 UTC by jonib
-
/One\mTwo/ would match "**OneTwo**ThreeFour", but only color **Two**, and **One** can't be colored before.
<regexp match="/(?:^|\s)\mREM.*$/i" region="Comment" />
This is from my code, it uses **\m** to make sure there is a whitespace or newline right before the comment, but is not colored as a comment.
Hope this helps a some more :)
jonib.
2009-09-20 16:49:29 UTC by jonib
-
aha... i think i have it...
it seems to mean 'the string reported to be the result of the regex will start at the position marked with \m'
i used it in a block start/end to eliminate the leading space off of the pairs
<block start="/(?: |^)\m(?{def:Keyword}if)\M(?: |\(|$)/" end="/(?: |^)\m(?{def:Keyword}fi)\M(?: |$)/" scheme="generalcodescheme"...
2009-09-20 16:45:13 UTC by srn253e
-
thanks jonib -- that does clarify \M
any ideas about \m ? ( one would think that knowing how \M works would help, but it doesnt... what does it mean to reset the start position? the only thing using the start position is the current regex... )
thanks
Steve.
2009-09-20 16:31:17 UTC by srn253e