Hello everyone,

I want to create a syntaxic coloration file for the input file language of the finite element code Abaqus,
but I have some difficulties to achieve my goal.

The keywords of Abaqus start with a * character and the comments with a ** string. I don't know how to deal with this and I am not sure of the lexer_filetype to use...

I am using GNU/Linux Ubuntu 11.04 with Gnome and the folder of my filetypes.*** is: /usr/share/geany

I have added the line
Abaqus=*.inp
to my file /usr/share/geany/filetype_extensions.conf

I have then created a file /usr/share/geany/filetypes.Abaqus.conf
(based on my filetypes.python file where the colors are inspired by IDLE and my filetypes.c) and gone to "Tools", "Update configuration" to make Geany be aware of my changes. After having closed and opened Geany again I was able to see the "Abaqus file" in the personalized file types.
So I guess the configuration is OK.

But my coloration does not work well. I have attached my filetypes.Abaqus.conf file to this email. If I delete the * characters of the keywords, then it's OK but not with the * (and the * is really important!)...
The comments don't work either and I don't understand why...

If someone has an idea, I would be glad to know :)!

Thanks for reading this long mail and for your help,

Steven
# For complete documentation of this file, please see Geany's main documentation
[styling]
# foreground;background;bold;italic
default=0x000000;0xfff1d1;false;false
commentline=0xff0000;0xfff1d1;false;false
number=0xf700ff;0xfff1d1;false;false
string=0x009405;0xfff1d1;false;false
character=0x008000;0xfff1d1;false;false
word=0xff8800;0xfff1d1;true;false
word2=0xdd00a6;0xfff1d1;true;false
triple=0x008020;0xfff1d1;false;false
tripledouble=0x404000;0xfff1d1;false;false
classname=0x8c00ff;0xfff1d1;false;false
defname=0x0004ff;0xfff1d1;false;false
operator=0x000000;0xfff1d1;false;false
identifier=0x000000;0xfff1d1;false;false
commentblock=0x808080;0xfff1d1;false;false
stringeol=0x000000;0xfff1d1;false;false
decorator=0x808000;0xfff1d1;false;false
#comment=comment
#commentdoc=commentdoc
uuid=extra
preprocessor=preprocessor
# @"verbatim"
verbatim=extra
# (/regex/)
regex=extra
#commentlinedoc=commentdoc,bold
#commentdockeyword=commentdoc,bold,italic
#commentdockeyworderror=commentdoc
globalclass=type

[keywords]
# all items must be in one line
primary=*acousticflowvelocity *acousticmedium *acousticwaveformulation 
*adaptivemesh *adaptivemeshconstraint *adaptivemeshcontrols *amplitude 
*anisotropichyperelastic *anneal *annealtemperature *aqua *assembly 
*asymmetric-axisymmetric *axial *basemotion *baselinecorrection 
*beamaddedinertia *beamfluidinertia *beamgeneralsection *beamsection 
*beamsectiongenerate *biaxialtestdata *blockage *bond *boundary 
*brittlecracking *brittlefailure *brittleshear *buckle *bucklingenvelope 
*bucklinglength *bucklingreductionfactors *bulkviscosity *caddedmass *capcreep 
*caphardening *capplasticity *capacity *castironcompressionhardening 
*castironplasticity *castirontensionhardening *cavitydefinition *cecharge 
*cecurrent *centroid *cfilm *cflow *cflux *changefriction *clayhardening 
*clayplasticity *clearance *cload *cohesivebehavior *cohesivesection 
*combinedtestdata *complexfrequency *concrete *concretecompressiondamage 
*concretecompressionhardening *concretedamagedplasticity *concretetensiondamage 
*concretetensionstiffening *conductivity *connectorbehavior 
*connectorconstitutivereference *connectordamageevolution 
*connectordamageinitiation *connectordamping *connectorderivedcomponent 
*connectorelasticity *connectorfailure *connectorfriction *connectorhardening 
*connectorload *connectorlock *connectormotion *connectorplasticity 
*connectorpotential *connectorsection *connectorstop *connectoruniaxialbehavior 
*constraintcontrols *contact *contactclearance *contactclearanceassignment 
*contactcontrols *contactcontrolsassignment *contactdamping *contactexclusions 
*contactfile *contactformulation *contactinclusions 
*contactinitializationassignment *contactinitializationdata 
*contactinterference *contactoutput *contactpair *contactprint 
*contactpropertyassignment *contactresponse *contourintegral *controls 
*correlation *co-simulation *co-simulationcontrols *co-simulationregion 
*coupledtemperature-displacement *coupledthermal-electrical *coupling *cradiate 
*creep *creepstrainratecontrol *crushablefoam *crushablefoamhardening 
*cycledplastic *cyclic *cyclichardening *cyclicsymmetrymodel *daddedmass 
*damageevolution *damageinitiation *damagestabilization *damping 
*dampingcontrols *dashpot *debond *decharge *decurrent *deformationplasticity 
*density *depvar *designgradient *designparameter *designresponse 
*detonationpoint *dflow *dflux *diagnostics *dielectric *diffusivity 
*directcyclic *displaybody *distributing *distributingcoupling *distribution 
*distributiontable *dload *dragchain *druckerprager *druckerpragercreep 
*druckerpragerhardening *dsacontrols *dsecharge *dsecurrent *dsflow *dsflux 
*dsload *dynamic *dynamictemperature-displacement *elfile *elprint *elastic 
*elcopy *electricalconductivity *element *elementmatrixoutput *elementoutput 
*elementresponse *elgen *elset *embeddedelement *emissivity *endassembly 
*endinstance *endloadcase *endpart *endstep *energyfile *energyoutput 
*energyprint *enrichment *enrichmentactivation *eos *eoscompaction *eosshear 
*epjoint *equation *eulerianboundary *euleriansection *expansion 
*extremeelementvalue *extremenodevalue *extremevalue *fabric *failstrain 
*failstress *failureratios *fastener *fastenerproperty *field *fileformat 
*fileoutput *film *filmproperty *filter *fixedmassscaling *flow *fluidbehavior 
*fluidbulkmodulus *fluidcavity *fluiddensity *fluidexchange 
*fluidexchangeactivation *fluidexchangeproperty *fluidexpansion *fluidflux 
*fluidinflator *fluidinflatoractivation *fluidinflatormixture 
*fluidinflatorproperty *fluidleakoff *fluidlink *fluidproperty *foundation 
*fracturecriterion *framesection *frequency *friction *gap *gapconductance 
*gapelectricalconductance *gapflow *gapheatgeneration *gapradiation 
*gasketbehavior *gasketcontactarea *gasketelasticity *gasketsection 
*gasketthicknessbehavior *gel *geostatic *globaldamping *heading 
*heatgeneration *heattransfer *heatcap *hourglassstiffness *hyperelastic 
*hyperfoam *hypoelastic *hysteresis *impedance *impedanceproperty *imperfection 
*import *importcontrols *importelset *importnset *incidentwave 
*incidentwavefluidproperty *incidentwaveinteraction 
*incidentwaveinteractionproperty *incidentwaveproperty *incidentwavereflection 
*include *incrementationoutput *inelasticheatfraction *inertiarelief 
*initialconditions *instance *integratedoutput *integratedoutputsection 
*interface *its *joint *jointelasticity *jointplasticity *jointedmaterial 
*jouleheatfraction *kappa *kinematic *kinematiccoupling *latentheat *loadcase 
*loadingdata *lowdensityfoam *mapsolution *mass *massdiffusion *massflowrate 
*material *matrix *matrixassemble *matrixgenerate *matrixinput *membranesection 
*modaldamping *modaldynamic *modalfile *modaloutput *modalprint *modelchange 
*mohrcoulomb *mohrcoulombhardening *moistureswelling *molecularweight *monitor 
*motion *mpc *mullinseffect *m1 *m2 *ncopy *nfill *ngen *nmap *nocompression 
*notension *nodalenergyrate *nodalthickness *node *nodefile *nodeoutput 
*nodeprint *noderesponse *nonstructuralmass *normal *nset *orientation *ornl 
*output *parameter *parameterdependence *parametershapevariation *part 
*periodic *permeability *physicalconstants *piezoelectric *pipe-soilinteraction 
*pipe-soilstiffness *planartestdata *plastic *plasticaxial *plasticm1 
*plasticm2 *plastictorque *porousbulkmoduli *porouselastic 
*porousfailurecriteria *porousmetalplasticity *postoutput *potential *preprint 
*pressurepenetration *pressurestress *prestresshold *pre-tensionsection *print 
*psd-definition *radiate *radiationfile *radiationoutput *radiationprint 
*radiationsymmetry *radiationviewfactor *randomresponse *ratedependent *ratios 
*rebar *rebarlayer *reflection *release *responsespectrum *restart 
*retainednodaldofs *rigidbody *rigidsurface *rotaryinertia *sectioncontrols 
*sectionfile *sectionorigin *sectionpoints *sectionprint 
*selectcyclicsymmetrymodes *selecteigenmodes *sfilm *sflow *shearcenter 
*shearfailure *shearretention *sheartestdata *shellgeneralsection *shellsection 
*shelltosolidcoupling *simpedance *simplesheartestdata *slideline *sload *soils 
*solidsection *solubility *solutiontechnique *solvercontrols *sorption 
*specificheat *spectrum *spring *sradiate *static *steadystatecriteria 
*steadystatedetection *steadystatedynamics *steadystatetransport *step 
*subcycling *submodel *substructurecopy *substructuredelete 
*substructuredirectory *substructuregenerate *substructureloadcase 
*substructurematrixoutput *substructurepath *substructureproperty *surface 
*surfacebehavior *surfaceflaw *surfaceinteraction *surfaceproperty 
*surfacepropertyassignment *surfacesection *surfacesmoothing *swelling 
*symmetricmodelgeneration *symmetricresultstransfer *system *temperature 
*tensilefailure *tensionstiffening *thermalexpansion *tie *timepoints *torque 
*torqueprint *tracerparticle *transform *transportvelocity 
*transverseshearstiffness *triaxialtestdata *trs *uelproperty 
*undexchargeproperty *uniaxial *uniaxialtestdata *unloadingdata 
*userdefinedfield *userelement *usermaterial *useroutputvariables 
*variablemassscaling *viewfactoroutput *visco *viscoelastic *viscous 
*voidnucleation *volumetrictestdata *wave *wind
#intrinsic_functions=
#user_functions=

[settings]
# default extension used when saving files
lexer_filetype=C
extension=inp

# the following characters are these which a "word" can contains, see 
documentation
#wordchars= _abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

# if only single comment char is supported like # in this file, leave 
comment_close blank
comment_open=**
comment_close=

# set to false if a comment character/string should start at column 0 of a 
line, true uses any
# indentation of the line, e.g. setting to true causes the following on 
pressing CTRL+d
        #command_example();
# setting to false would generate this
#   command_example();
# This setting works only for single line comments
comment_use_indent=false

# context action command (please see Geany's main documentation for details)
context_action_cmd=


[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
#compiler=gfortran -Wall -c "%f"
#linker=gfortran -Wall -o "%e" "%f"
run_cmd="abaqus %e"

_______________________________________________
Geany mailing list
[email protected]
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to