Page 1 of 1

How to handle "Dockerfile" files?

Posted: Fri Jul 21, 2023 11:42 am
by gurok
Hi,

Docker uses a format called "Dockerfile" (for want of a better term). These files are normally named Dockerfile with no extension. I downloaded the Dockerfile syntax definition and made a new document class with Dockerfile in it, but TextPad won't syntax highlight it. If I manually change the syntax highlighting on the currently open document to Dockerfile.syn, it works just fine. I don't have any issues with any of my other syntax definitions. Is there a trick to getting this working or is this a TextPad limitation? I tried both

Code: Select all

Dockerfile
Dockerfile.*
in the "Files in class Dockerfile" listbox.

Re: How to handle "Dockerfile" files?

Posted: Fri Jul 21, 2023 3:33 pm
by bbadmin
This will work if you delete "*." from the list of members of the Text document class, and make "docker" the only member of your Docker document class.

Re: How to handle "Dockerfile" files?

Posted: Mon Jul 31, 2023 3:56 am
by gurok
Thank you! I didn't think to check whether text documents were already handling ".".