Simple highlighting and code folding in Notepad++ for MIKE by DHI m21fm and ecolab files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
pfs_static_list.txt
pfs_variable_list.txt
readme.md
userDefineLang.xml
userDefineLang_PFS_Template.xml
with_highlight_crop.png

readme.md

mike_pfs_npp

Overview

Very simple code folding and syntax highlighting in Notepad++ for files created by the MIKE by DHI hydrodyanmic modelling software. Currently auto-detects files with .m21fm, .ecolab and .plc extensions. Requires Notepad++ (obviously).

Developed with MIKE by DHI 2012, but it should work for most versions of the software.

Usage

Notepad++ allows you to add new languages by adding language definitions to a userDefineLang.xml file. Add the MIKE_PFS definition like this:

  1. Download the language definition file userDefineLang.xml from GitHub to your computer.
  2. Click Start > Run, and type (or paste in) %APPDATA%\Notepad++, then click OK. This will open the settings directory for Notepad++.
  3. If it does not already exist, copy the downloaded userDefineLang.xml file into the Notepad++ settings directory. Skip to step 7.
  4. If it does exist, open the active userDefineLang.xml with a text editor.
  5. Copy the contents of the MIKE_PFS definition file between the <UserLang>...</UserLang> tags into the active userDefineLang.xml, at the end right before </NotepadPlus>.
  6. Save userDefineLang.xml.
  7. Restart Notepad++.

Screenshot

code_folding

Credit

Inspired by (and much of this readme stolen from) thomsmits' markdown_npp project.

Licence

Created by Daniel Pritchard (www.pritchard.co)
Distributed under a creative commons CC BY-SA licence. See here:
http://creativecommons.org/licenses/by-sa/3.0/