SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Custom Highlighting

Last post 11-11-2006 5:51 PM by DanielGrunwald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-11-2006 5:38 PM

    • Dayell
    • Top 100 Contributor
    • Joined on 02-22-2006
    • Goiânia, GO - Brazil
    • Posts 23

    Custom Highlighting

    Hi guys, How could I create a rule for find a spam, but without coloring the start words?

    Example:

    public class Texture {

    I want to create a rule that will coloring the word Texture...

    Any ideas?
     

  • 11-11-2006 5:51 PM In reply to

    Re: Custom Highlighting

    Maybe you can use <MarkFollowing bold = "true" italic = "false" color = "MidnightBlue">class</MarkFollowing> (though so far MarkFollowing was only used for single chars, e.g. \ in TeX-mode). MarkFollowing marks exactly the following word. For example in C#, MarkPrevious is used to make method calls bold.

    Alternatively, you can take a normal Span and give the start token a different color. Example: the C# XML documentation span which has a gray beginning, but green line after that:

                <Span name = "DocLineComment" ... color = "Green" stopateol = "true">
                    <Begin bold = "false" italic = "false" color = "Gray">///@!/@</Begin>
                </Span>

    Daniel Grunwald
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.