Received: by 10.59.0.73 with SMTP id aw9mr12932372ved.1.1351639739851; Tue, 30 Oct 2012 16:28:59 -0700 (PDT) X-BeenThere: scintilla-interest@googlegroups.com Received: by 10.220.221.4 with SMTP id ia4ls456619vcb.4.gmail; Tue, 30 Oct 2012 16:28:59 -0700 (PDT) Received: by 10.52.76.136 with SMTP id k8mr4518551vdw.13.1351639739389; Tue, 30 Oct 2012 16:28:59 -0700 (PDT) Date: Tue, 30 Oct 2012 16:28:58 -0700 (PDT) From: RaptorX To: scintilla-interest@googlegroups.com Message-Id: Subject: [Lexer] Help trying to style string internally. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_146_27267703.1351639738850" ------=_Part_146_27267703.1351639738850 Content-Type: multipart/alternative; boundary="----=_Part_147_1860156.1351639738851" ------=_Part_147_1860156.1351639738851 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi. I have been advancing with my lexer and it is going real well. Now there is something I would like to do but I am not sure how to approach it. I want my Lexer to style any string contained in two asterisks characters and: 1) remove the asterisks 2) convert string to bold I would like to be able to do that internally, that means not setting up a Style state where the user would do that manually. Can you point me in to the functions I would be using for this? Up to now I have been using a lot of sc.Match, sc.SetState, sc.ChangeState and others but I am sure this is not the correct approach for this problem. Thanks in advance for your help! ------=_Part_147_1860156.1351639738851 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi.

I have been advancing with my lexer and it is going real well. Now there is something I would like to do but I am not sure how to approach it.
I want my Lexer to style any string contained in two asterisks characters and:

1) remove the asterisks
2) convert string to bold

I would like to be able to do that internally, that means not setting up a Style state where the user would do that manually.

Can you point me in to the functions I would be using for this?
Up to now I have been using a lot of sc.Match, sc.SetState, sc.ChangeState and others but I am sure this is not the correct approach for this problem.

Thanks in advance for your help!
------=_Part_147_1860156.1351639738851-- ------=_Part_146_27267703.1351639738850--