Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
config:dockerfile [2018/11/28 19:29] – created Dockerfile syntax highlighting page pestadieu | config:dockerfile [2019/06/24 20:51] (current) – Note to use combined Dockerfile and docker-compose janax | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Dockerfile Filetype ===== | ==== Dockerfile Filetype ===== | ||
+ | |||
+ | === NOTE : === | ||
+ | |||
+ | **Please use the combined [[config: | ||
+ | Dockerfiles and docker-compose filetypes are now merged into one filetype. Therefore this filetype for only Dockerfiles files will not be kept updated. \\ | ||
+ | Go to the filetype [[config: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
**Dockerfile** | **Dockerfile** | ||
[[http:// | [[http:// | ||
- | This page describe how to add basic Dockerfile syntax highlighting on Geany. | + | This page describe how to add basic Dockerfile syntax highlighting on Geany. |
Add the following lines to // | Add the following lines to // | ||
Line 16: | Line 26: | ||
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 version 0.1, meaning it can be used but needs improvement. | ||
<file properties filetypes.Dockerfile.conf> | <file properties filetypes.Dockerfile.conf> | ||
# For complete documentation of this file, please see Geany' | # For complete documentation of this file, please see Geany' | ||
- | + | # | |
- | # Geany Color Syntax support for Dockerfiles | + | # Geany Color Syntax support for Dockerfiles |
- | # version 0.1 | + | # |
+ | # version | ||
+ | # | ||
+ | # 0.1 - original version | ||
+ | # 0.2 - base on Sh instead - fixes problems with //, #, /* | ||
+ | |||
[styling=C] | [styling=C] | ||
+ | |||
[keywords] | [keywords] | ||
- | primary=ADD ARG CMD COPY ENTRYPOINT ENV EXPOSE FROM HEALTHCHECK LABEL ONBUILD RUN SHELL STOPSIGNAL USER VOLUME WORKDIR | + | primary= ADD ARG CMD COPY ENTRYPOINT ENV EXPOSE FROM HEALTHCHECK LABEL ONBUILD RUN SHELL STOPSIGNAL USER VOLUME WORKDIR |
+ | |||
[lexer_properties=C] | [lexer_properties=C] | ||
+ | |||
[settings] | [settings] | ||
- | lexer_filetype=C | + | lexer_filetype=Sh |
tag_parser=C | tag_parser=C | ||
- | extension=c | + | extension= |
# single comments, like # in this file | # single comments, like # in this file | ||
comment_single=# | comment_single=# | ||
+ | |||
# 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 | ||
Line 46: | Line 60: | ||
# context action command (please see Geany' | # context action command (please see Geany' | ||
context_action_cmd=xdg-open " | context_action_cmd=xdg-open " | ||
+ | |||
</ | </ | ||
- | Finally, add the following line to the data Makefile // | ||
- | <file properties Makefile.am> | ||
- | filedefs/ | ||
- | </ | ||
{{tag> | {{tag> |