Store userDefineLang_DockerfileDark.xml
at
%AppData%\Roaming\Notepad++\userDefineLangs\userDefineLang_DockerfileDark.xml
and select Language > Dockerfile
in Notepad++.
This color theme is specifically compatible with VS2015-Dark-Npp Theme.
Since Dockerfile has no extension, the style is not automatically applied.
A workaround is to use the Plugin PythonScript.
Once installed, select Plugins > Python script > Configuration
and change Initialisation
from LAZY
to ATSTARTUP
.
Create a new script: Plugins > Python script > New Script
,
copy the code below and save as Dockerfile.py
:
def callback_BUFFERACTIVATED(args):
if 'Dockerfile' in notepad.getBufferFilename(args['bufferID']):
notepad.runMenuCommand('Language', 'Dockerfile')
notepad.clearCallbacks([NOTIFICATION.BUFFERACTIVATED ])
notepad.callback(callback_BUFFERACTIVATED, [NOTIFICATION.BUFFERACTIVATED ])
Source: community.notepad-plus-plus.org/topic/1134
Once you switch tabs, the style will be automatically applied to
all tabs with the name Dockerfile
. Currently, this does however
not work on file open - if you find a solution, please add a comment.
git clone [email protected]:b152fef22c4dce04c2b56236ce3e2dbf.git
Thanks for this.
Excessively bright dockerfile highlighting was doing my head in...