Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2011-11-11 17:48:27

JMB365
Member
Registered: 2008-01-19
Posts: 781

CodeAster syntax highlighting for editor

Hello developers,

Is there any text Linux editor that has a template available for highlighting CodeAster keywords in manner similar to the Python highlighting?  Or has somebody developed such a capability?

If not, I would like to configure the gedit text editor to use CodeAster syntax highlighting as shown in the attached image.  To do that I am looking for a COMPLETE list of all the keywords and options used in CodeAster as an ASCII text file with one word per line.  In the past I gathered what I could here: http://www.code-aster.org/wiki/doku.php … p120_terms  But I am looking for an official comprehensive list (of course without the explanation for these keywords).  I believe such a feature in a text editor makes CodeAster command file editing immensely easier on the eyes (& brain)!  Look forward to hearing from any of you.

Regards, JMB

Last edited by JMB365 (2011-11-11 17:48:55)


Attachments:
Screenshot.png, Size: 22.2 KiB, Downloads: 629

SalomeMeca 2021
Ubuntu 20.04, 22.04

Offline

#2 2011-11-14 15:17:49

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,178

Re: CodeAster syntax highlighting for editor

Personally, I use geany with the standard Python syntax highlighting.

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#3 2011-11-16 16:39:19

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,829

Re: CodeAster syntax highlighting for editor

hello

and i use Kate, with Python
it is rather a monster as a  text editor
you can create your own template if you want

i use it as well with gmsh and a c template
and also for reading .resu files,
all in one for a given study
it warns you if the file has been chaged by another program

jean pierre aubry


consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline

#4 2011-12-26 09:11:07

kamil
Member
Registered: 2010-07-05
Posts: 60

Re: CodeAster syntax highlighting for editor

Hi ,

I use the default python highlighting. Besides In Wındows there is notepad++. You can take a look if it exists linux version.

regards,

Kamil

Offline

#5 2011-12-30 20:00:55

dbpatankar
Member
From: Roorkee, Uttarakhand, India
Registered: 2010-05-22
Posts: 206

Re: CodeAster syntax highlighting for editor

jeanpierreaubry wrote:

hello

and i use Kate, with Python
it is rather a monster as a  text editor
you can create your own template if you want

i use it as well with gmsh and a c template
and also for reading .resu files,
all in one for a given study
it warns you if the file has been chaged by another program

jean pierre aubry

Same here! smile

I too use it as a complete code aster editor.
I mostly use aster mail file for mesh definition with matlab highlighting mode.
comm file with python highlighting mode
export file with no highlighting

then built-in kate terminal to run the study.
then resu and mast files and any other custom created files to view if needed.

So only excluding post-processing all the things can be handled inside kate.
Such a great tool KDE devs developed.

And as far as template is concerned, I am trying to prepare one for kate.
If I succeed, I will post it here.

But please don't count on me. I am a very lazy person. smile

Offline

#6 2013-06-05 07:46:14

reiteres
Member
Registered: 2013-06-03
Posts: 560

Re: CodeAster syntax highlighting for editor

I now started to build my own version of an aster-mode for emacs
It is not very great but I is able to highlight the code_aster Operators and _F as builtin Type.

I made it as extension of Python mode, thus it is able to highlight all Python Keywords too.

Installation: copy it to your home directory e.g. in ~/.emacs.d/plugins/astermode , and
add

(load "~/.emacs.d/plugins/astermode/aster-mode")


to your .emacs file

Have fun!

PS: I distribute it under GPL3. Please don't hesitate to send me improvements!


Attachments:
aster-mode.el.zip, Size: 2.51 KiB, Downloads: 598

Offline

#7 2013-06-05 08:07:25

delmas
Administrator
From: EDF R&D
Registered: 2007-12-12
Posts: 837

Re: CodeAster syntax highlighting for editor

Nice job. Don't forget to introduce you in this forum : http://www.code-aster.org/forum2/viewforum.php?id=29

Regards.


Code_Aster release : unstable on (Ubuntu Precise Pangolin 12.04 64 bits) - GNU + Intel

Code_Aster. What else ?

Offline

#8 2018-01-16 01:20:54

psicofil
Member
From: Argentina
Registered: 2016-04-27
Posts: 24

Re: CodeAster syntax highlighting for editor

I created a template, for the text editor Kate, with the most of commands that I use. As I complete the template I will upload it in my github repository.

https://github.com/psicofil/Code_Aster_Kate_Syntax

I hope it will be useful to someone
Sorry for my bad English.
Regards.


Ing. Gomez Lucio
Scope Ingenieria  (scopeingenieria.com)

Offline