How to handle "Dockerfile" files?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
gurok
Posts: 5
Joined: Tue Apr 06, 2010 3:15 am

How to handle "Dockerfile" files?

Post 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.
Last edited by AmigoJack on Fri Jul 21, 2023 12:18 pm, edited 1 time in total.
Reason: adding question mark to a question, as this is no how-to then; adding link; adding code formatting
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: How to handle "Dockerfile" files?

Post 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.
gurok
Posts: 5
Joined: Tue Apr 06, 2010 3:15 am

Re: How to handle "Dockerfile" files?

Post by gurok »

Thank you! I didn't think to check whether text documents were already handling ".".
Post Reply