Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
config:dockerfile [2019/06/23 19:50] – Fixed bugs displaying comments janaxconfig:dockerfile [2019/06/23 20:00] – Version 0.2 janax
Line 4: Line 4:
 [[http://www.docker.com|Docker]] is a computer program that performs operating-system-level virtualization, also known as "containerization" [[http://www.docker.com|Docker]] is a computer program that performs operating-system-level virtualization, also known as "containerization"
  
-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 //~/.config/geany/filetype_extensions.conf// under the respective sections [Extensions] and [Groups] Add the following lines to //~/.config/geany/filetype_extensions.conf// under the respective sections [Extensions] and [Groups]
Line 16: Line 16:
 Save the configuration file below in your Geany filetype definition files config directory, e.g. //~/.config/geany/filedefs/filetypes.Dockerfile.conf// Save the configuration file below in your Geany filetype definition files config directory, e.g. //~/.config/geany/filedefs/filetypes.Dockerfile.conf//
  
-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>
Line 23: Line 22:
 # Geany Color Syntax support for Dockerfiles  # Geany Color Syntax support for Dockerfiles 
 # #
-# It can also parse docker-compose files,  
-# but requires commenting out the YAML-row in the Geany installation filetype_extensions.conf  
- 
 # version 0.2 # version 0.2
 # #
-# 0.1 - estadieu.pl@gmail.com   # original version +# 0.1 -  original version 
-# 0.2 - axelsson.jan@gmail.com  base on Sh instead - fixes problems with //, #, /* +# 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 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
    
 [lexer_properties=C] [lexer_properties=C]
Line 57: Line 53:
 </file> </file>
  
-Finally, add the following line to the data Makefile //~/data/Makefile.am// 
  
-<file properties Makefile.am> 
-filedefs/filetypes.Dockerfile.conf 
-</file> 
  
 {{tag>configure gnuplot filetype}} {{tag>configure gnuplot filetype}}
Print/export