Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
config:docker-compose [2019/06/23 21:15] – Added "for the interested" janaxconfig:docker-compose [2019/06/24 20:31] – Folding in editor added janax
Line 14: Line 14:
 [Extensions] [Extensions]
 Dockerfile=Dockerfile;dockerfile;*.dockerfile;*.Dockerfile;docker*; Dockerfile=Dockerfile;dockerfile;*.dockerfile;*.Dockerfile;docker*;
 +YAML=
 YML=*.yaml;*.yml; YML=*.yaml;*.yml;
 +
 [Groups] [Groups]
 Script=Dockerfile; Script=Dockerfile;
Line 20: Line 22:
 </file> </file>
  
 +(For the interested : it seems as the default YAML is a built-in, which cannot be removed.  The workaround is to introduce the YML file type and to set 'YAML=' which overrides the file mapping.  YAML file type will still be visible in the Menu, but matching of yaml files will be to YML file type.)
  
 ===== Step 2) ===== ===== Step 2) =====
Line 30: Line 33:
 # Geany Color Syntax support for Dockerfiles  # Geany Color Syntax support for Dockerfiles 
 # #
-# version 0.2+# It can also parse docker-compose files,  
 +# but requires commenting out the YAML-row in the Geany installation filetype_extensions.conf  
 +#  
 +# version 0.3
 # #
-# 0.1 -  original version +# 0.1 - estadieu.pl@gmail.com   # original version 
-# 0.2 -  base on Sh instead - fixes problems with //, #, /* +# 0.2 - axelsson.jan@gmail.com  base on Sh instead - fixes problems with //, #, /*  
 +# 0.3 - axelsson.jan@gmail.com  # base on Python instead - folding of yml 
    
-[styling=C]+[styling] 
 +default=default 
 +commentline=comment_line 
 +number=number_1 
 +string=string_1 
 +word=keyword_1 
    
 [keywords] [keywords]
-primary= ADD ARG CMD COPY ENTRYPOINT ENV EXPOSE FROM HEALTHCHECK LABEL ONBUILD RUN SHELL STOPSIGNAL USER VOLUME WORKDIR build container_name context command default depends_on dns dockerfile entrypoint environment env_file expose external extra_hosts external_links file hostname image labels links name network ports service services volumes web devices  +primary= ADD ARG CMD COPY ENTRYPOINT ENV EXPOSE FROM HEALTHCHECK LABEL ONBUILD RUN SHELL STOPSIGNAL USER VOLUME WORKDIR build container_name context command default depends_on dns dockerfile entrypoint environment env_file expose external extra_hosts external_links file hostname image labels links name network ports service services version volumes devices  
-  + 
-[lexer_properties=C] +
- +
 [settings] [settings]
-lexer_filetype=Sh +lexer_filetype=Python 
-tag_parser=C +
-extension=+
 # single comments, like # in this file # single comments, like # in this file
 comment_single=# comment_single=#
Line 55: Line 66:
 # command_example(); # command_example();
 # 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's main documentation for details) # context action command (please see Geany's main documentation for details)
 context_action_cmd=xdg-open "https://docs.docker.com/engine/reference/builder/" context_action_cmd=xdg-open "https://docs.docker.com/engine/reference/builder/"
 +
 +#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
 +
  
 </file> </file>
Line 122: Line 136:
 (For the interested : this is a copy of the default filetypes.yaml) (For the interested : this is a copy of the default filetypes.yaml)
  
-===== Step 4) ===== 
- 
-Enable docker-compose syntax highlighting, by disabling the default Scintilla YAML version, and use the one in Step 3) instead. \\ 
- 
- 
-Comment out row starting with YAML in global "filetype_extensions.conf" \\ 
-''from : YAML=*.yaml;*.yml; \\ 
-to   : #YAML=*.yaml;*.yml; '' 
- 
- 
-(For the interested : it seems as the default YAML is a built-in, which cannot be overridden.  The workaround is to introduce the YML file type in step 1, and 3) 
  
 {{tag>configure gnuplot filetype Dockerfile}} {{tag>configure gnuplot filetype Dockerfile}}
Print/export