Hi Doru,

Thanks for the response. I managed to make the following:

Imágenes integradas 1
Imágenes integradas 2

The only problem with this is that I end duplicating some logic, and that it could also be not easy for supporting the different themes. Maybe I should try making a syntax highlighting framework that can use either, PetitParser grammars, or regular expressions for basic support of languages as C/C++/Java (comments, keyword, identifiers, literals).

Best regards,
Ronie

2017-09-12 14:26 GMT+02:00 Tudor Girba <tudor@tudorgirba.com>:
Hi,

Thanks for the ping :).

Please take a look at the Pillar syntax highlighter. You can find it in the following way:

- Download Pillar:
        Gofer new smalltalkhubUser: 'Pier' project: 'Pillar'; configuration; loadDevelopment.
- Browse
        GTPillarHighlighterTextDecorator (this is what hooks the parser with Rubric)
        GTPillarHighlighter (this is the parser that produces syntax highlighting)

Please let me know if you have issues with this.

Cheers,
Doru


> On Sep 12, 2017, at 12:11 PM, Ronie Salgado <roniesalg@gmail.com> wrote:
>
> Hi,
>
> I have some custom programming languages (Lowtalk for low-level programming, and Dastrel for GPU shaders) whose grammar are defined by using PetitParser.
>
> How can I add syntax highlighting support for them by using the GTInspector?
>
> Best regards,
> Ronie
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@list.inf.unibe.ch
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
www.tudorgirba.com
www.feenk.com

"Every successful trip needs a suitable vehicle."





_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev