Highlighting Syntax in gedit for CalculiX CrunchiX inp file for Enhanced Readability

CalculiX is a free software nonlinear three-dimensional finite element program for structural applications. Following steps results in syntax highlight of inp file in gedit:

  1. Add .xml in ~/.local/share/mime/packages named ccx.xml with following content:

  2. Update mime-database as:

  3. Add ccx.lang file in /usr/share/gtksourceview-3.0/language-specs or in path resulting from following command:

    The content of ccx.lang is:

  4. Open inp file and select gedit program to open.
  5. If you dont like or face problem then revert back the inp files to plain text as:

Syntax Highlight Files can be downloaded from below link:
Download Syntax Highlight Files.

before syntax highlight
Fig.1: Before Syntax Highlight of CCX input file.
after syntax highlight
Fig.2: After Syntax Highlight of CCX input file.

 

Reference:

  1. Gedit New Language File
  2. Language Definition v2.0 Tutorial
  3. SuperUser.com
  4. CalculiX CrunchiX

Leave a Reply