Re: Is there any way to do this in GtkSourceView?
- From: "Raja Mukherji" <rajamukherji gmail com>
- To: "Steve Frécinaux" <nudrema gmail com>
- Cc: gnome-devtools gnome org
- Subject: Re: Is there any way to do this in GtkSourceView?
- Date: Fri, 30 May 2008 22:14:03 +0100
That worked perfectly, thanks.
2008/5/30 Steve Frécinaux <
nudrema gmail com>:
On Wed, May 28, 2008 at 10:42 AM, Raja Mukherji <
rajamukherji gmail com> wrote:
> Hi,
> I'm trying to create a .lang file for text that looks like html interspersed
> with escape sequences "\<code>;", where <code> is written in a scripting
> language called Wrapl. The interpreter parses <code> so it can contain
> additional semicolons, but only within matching brackets. However the syntax
> highlighting switches back to html after the first semicolon. I realize this
> might be tricky to solve, but it could be possible to only switch back to
> html mode at the first semicolon after a matching bracket. Is there any way
> to do this?
Try adding a context for parenthesis: it seems that you expect the ';'
inside the parenthesis not to be considered as the end of your code,
so you should tell gtksourceview that parens extend the block context.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]