Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
config:mbdyn [2016/03/07 10:18] – created MBDyn filetype louisgag | config:mbdyn [2020/01/10 09:02] (current) – adding math keywords, Groups def, and run (compile) command louisgag | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MBDyn Filetype ===== | ==== MBDyn Filetype ===== | ||
- | [[http://http:// | + | [[http:// |
Add the following lines to // | Add the following lines to // | ||
Line 6: | Line 6: | ||
[Extensions] | [Extensions] | ||
MBDyn=*.mbd; | MBDyn=*.mbd; | ||
+ | [Groups] | ||
+ | Markup=MBDyn | ||
</ | </ | ||
Save the configuration file below in your Geany filetype definition files config directory, e.g. // | Save the configuration file below in your Geany filetype definition files config directory, e.g. // | ||
- | + | (NB: Note that this filetype definition file is in constant | |
- | NB: Note that this filetype definition file is in development, | + | |
<file properties filetypes.MBDyn.conf> | <file properties filetypes.MBDyn.conf> | ||
- | # For complete documentation of this file, please see Geany' | + | |
+ | # Using the Perl lexer seems to be the best option to have both # single line and /* multiline comment work, multiline comments however still suffer when / are present within them | ||
[styling] | [styling] | ||
- | # Edit these in the colorscheme .conf file instead | + | |
default=default | default=default | ||
- | comment=comment | + | error=error |
- | command=function | + | commentline=comment_line |
number=number_1 | number=number_1 | ||
- | keyword=keyword_1 | + | word=keyword_1 |
string=string_1 | string=string_1 | ||
+ | character=character | ||
+ | preprocessor=preprocessor | ||
operator=operator | operator=operator | ||
- | identifier=identifier_1 | + | identifier=identifier |
- | doublequotedstring=string_2 | + | scalar=identifier_1 |
+ | pod=comment_doc | ||
+ | regex=regex | ||
+ | array=identifier_2 | ||
+ | hash=identifier_3 | ||
+ | symboltable=identifier_4 | ||
+ | backticks=backticks | ||
+ | pod_verbatim=comment_doc_keyword | ||
+ | reg_subst=regex | ||
+ | datasection=value | ||
+ | here_delim=here_doc | ||
+ | here_q=here_doc | ||
+ | here_qq=here_doc | ||
+ | here_qx=here_doc | ||
+ | string_q=string_2 | ||
+ | string_qq=string_2 | ||
+ | string_qx=string_2 | ||
+ | string_qr=string_2 | ||
+ | string_qw=string_2 | ||
+ | variable_indexer=default | ||
+ | # *_var mappings may need checking | ||
+ | string_var=identifier_1 | ||
+ | regex_var=identifier_2 | ||
+ | regsubst_var=identifier_2 | ||
+ | backticks_var=identifier_2 | ||
+ | here_qq_var=identifier_2 | ||
+ | here_qx_var=identifier_2 | ||
+ | string_qq_var=identifier_2 | ||
+ | string_qx_var=identifier_2 | ||
+ | string_qr_var=identifier_2 | ||
+ | # translation: | ||
+ | xlat=string_2 | ||
+ | # not used | ||
+ | punctuation=default | ||
+ | # obsolete: replaced by qq, qx, qr, qw | ||
+ | longquote=here_doc | ||
+ | sub_prototype=here_doc | ||
+ | format_ident=string_2 | ||
+ | format=string_2 | ||
+ | |||
[keywords] | [keywords] | ||
- | # all items must be in one line | + | primary=a abs absolute abstract acceleration accelerations acos acosh actan actan2 actanh active aerodynamic air aircraft algebraic all alpha amplitude angle anglerel angular angvel angvrel angvrel2 array asbtract |
- | primary=begin end asbtract | + | |
+ | [lexer_properties] | ||
+ | styling.within.preprocessor=0 | ||
+ | |||
[settings] | [settings] | ||
- | # default extension used when saving files | + | |
extension=mbd | extension=mbd | ||
- | lexer_filetype=Matlab/ | + | lexer_filetype=Perl |
- | # the following characters are these which a " | + | fold.perl.at.else=0 |
- | # | + | fold.perl.comment.explicit=0 |
- | + | fold=0 | |
- | # single comments, like # in this file | + | |
+ | | ||
+ | # | ||
+ | | ||
+ | # single comments, like # in this file | ||
comment_single=# | comment_single=# | ||
- | # multiline comments | + | |
- | #comment_open= | + | comment_open=/* |
- | #comment_close= | + | comment_close==*/ |
- | + | | |
- | # set to false if a comment character/ | + | # set to false if a comment character/ |
- | # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d | + | # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d |
- | # | + | # |
- | # setting to false would generate this | + | # setting to false would generate this |
- | # | + | # |
- | # This setting works only for single line comments | + | # This setting works only for single line comments |
- | comment_use_indent=true | + | comment_use_indent=false |
- | + | | |
- | # context action command (please see Geany' | + | # context action command (please see Geany' |
context_action_cmd= | context_action_cmd= | ||
+ | |||
[indentation] | [indentation] | ||
- | #width=4 | + | |
- | # 0 is spaces, 1 is tabs, 2 is tab & spaces | + | # 0 is spaces, 1 is tabs, 2 is tab & spaces |
- | #type=1 | + | #type=1 |
- | [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= | ||
- | run_cmd=mbdyn -o /tmp/DEL " | ||
+ | [build-menu] | ||
+ | FT_00_LB=Run | ||
+ | FT_00_CM=mbdyn %f | ||
+ | FT_00_WD= | ||
</ | </ | ||
+ | |||
{{tag> | {{tag> |