Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Syntax highlighting for Telemac in Notepad++

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16435

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello Luc,

Thank you for the additional corrections -- it solves the problems of keywords inside keywords but it made the french keyword go all wrong -- you can try on \examples\telemac2d\bumpcri\t2d_bumpcri.cas

Could you have a look ?

Once this is all working I will add your version to the system.

Sébastien.
The administrator has disabled public write access.

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16440

  • Lux
  • Lux's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 39
Sébastien,
The file that was attached in my previous post contains only the modification of simple/double quotations marks.
It did not correct the problem of keyword inclusion, but only tried some modifications for myself to understand how it was interpreted.

I will have a look in details, but the cas file seems to work with my modifications (see the picture attached below with my portable of Notepad v6.7.5 and the syntax from the xml file I attached the last time).

t2d_bumpcri.cas_with_syntax_hightlighting_v2.png


Regards,
Luc
The administrator has disabled public write access.

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16573

  • Lux
  • Lux's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 39
Hi,

I did some tests with Notepad++ and it seems that my last xml file is working properly with recent version of Notepad++.
The problem of keyword inclusion in the same language (in the sence of syntax highlighting) seems to be fixed in recent version of Notepad++.

There is still the possibility that the software gets confused in using the language TELEMAC (named TELEMAC_v7p0). Indeed, TELEMAC is including the keywords of all different modules and if a keyword of a module is included in a keyword of a different module, the highlighting can be wrong. To avoid this problem, select your specific language (ie the module of your cas file and not the general TELEMAC language "including" them).

Regards,
Luc
The administrator has disabled public write access.

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16575

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

When I try with the CAS file from the telemac2d/bumpcri it seems to go wrong at the apostrophe of the second keyword: COORDONNEES DE L'ORIGINE, even if I set the language.

I have Notepad++ 6.7.5, which I think is the latest version available.

Is that only my system ?

Thanks for checking.
Sébastien
The administrator has disabled public write access.

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16603

  • Lux
  • Lux's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 39
Hello Sébastien,

As I posted in previously, it is working properly with my Notepad++ v6.7.5, which corresponds to the screenshot (and it is also working with another computer which has Notepad++ v6.5.1).
I tried again from scratch: I re-installed the software and imported my last file UDL_Telemac_v7p0_v2.xml and tried with the cas file: t2d_bumpcri.cas.
I could not reproduce your problem, except by importing the first xml file posted by j.lhomme. Therefore I do not know where it can come from because it seems we have the same software with the same configuration... Has someone else the same problem?

If a quotation mark is not recognized as belonging to a keyword, the software gets confused because it also tries to detect string delimiters.
It is possible to turn off this, to avoid having the following keywords wrongly hightlighted.
For this, go to the corresponding settings:
Language > Define your language > (select a language) > Switch to tab "Operators & Delimiters" and remove Delemiter style 1.

Regards,
Luc
The administrator has disabled public write access.

Syntax highlighting for Telemac in Notepad++ 9 years 7 months ago #16611

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Thank you Luc, you last comment on removing the delimiter seems to make it work.

Good work,

Sébastien.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.