Editors¶
This page contains ideas for customizing your favorite editor for DMP and Django development. If your editor isn’t listed here, please contribute ideas for it!
Note that templates can use any file extension. For example, if you prefer .mako
instead of the conventional .html
, simply use this extension in view functions:
@view_function
def process_request(request):
...
return request.dmp.render('mypage.mako', {...})
VSCode¶
Code Highlighting: | |
---|---|
A VSCode extension for Mako exists in the marketplace. Search “Mako” on the extensions tab and install. To activate highlighting, click the language in the bottom right of the vscode window (or type “Change Language Mode” in the command dropdown) and select Mako. If you want to make the association permanent, add the following to the vscode settings file. Open the command Command Palette and type "files.associations": {
"*.htm": "mako",
"*.html": "mako"
}
|
Atom¶
Code Highlighting: | |
---|---|
An Atom package for Mako can be downloaded from within the editor. Open Settings and search for “Mako” on the Install tab. Install the To activate highlighting, click the language in the bottom right of the atom window and select If you want to make the association stick, open the Atom "*":
core:
customFileTypes:
'text.html.mako': [
'html',
'htm'
]
|