Author Topic: Example of custom "Syntax Highlighting" for own DSL in code editor?  (Read 647 times)

timoc

  • EA User
  • **
  • Posts: 153
  • Karma: +10/-0
    • View Profile
I have a DSL that is related to a model, but not generated or handled by EA at the moment. I would like to view/edit the DSL in the EA's integrated development environment with syntax highlighting.

As far as i can tell from the manual, syntax highlighting can be changed. In IDE's, it is usualy a configuration task. I had the feeling there was some code parsing related feature that suppored syntax-highlighting, but I cannot tell if it is available or associated with with any of these EA features:
- MDG Technology - Developing a programming language
- Code mining 
- Grammar Framework

Is it possible in one of these or something else? If so are there simple examples?

« Last Edit: August 14, 2020, 07:08:38 am by timoc »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11176
  • Karma: +410/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Example of custom "Syntax Highlighting" for own DSL in code editor?
« Reply #1 on: August 17, 2020, 04:44:42 pm »
I'm not sure you can change the syntax highlighting.

I haven't seen a reference in EA's manual on how to do that.

Geert

timoc

  • EA User
  • **
  • Posts: 153
  • Karma: +10/-0
    • View Profile
Re: Example of custom "Syntax Highlighting" for own DSL in code editor?
« Reply #2 on: August 20, 2020, 01:21:51 am »
I'm not sure you can change the syntax highlighting.

I haven't seen a reference in EA's manual on how to do that.

Geert
After much digging, and without having the time to implement a full grammar, that was my conclusion.
Maybe, code editing support, such as highlighting, is something that could be augmented with the new javascript engine.