Maidens of the Kaleidoscope
~Hakurei Shrine~ => Rika and Nitori's Garage Experiments => Topic started by: nlog on March 15, 2015, 12:55:24 AM
-
Set of Notepad++ plugins for Touhou Danmakufu ph3 scripting language. Consists of auto completion config and syntax highlighting configs.
Github repo (https://github.com/nl0g/danmakufu-npp)
Download (https://github.com/nl0g/danmakufu-npp/releases/latest)
Features
- Syntax highlighting for Danmakufu ph3 scripts (.dnh)
- Default and Bespin color themes
- Code completion for ph3 engine library functions and constants
- Calltip function documentation
Installation
To install auto completion config copy Danmakufu.ph3.xml to your Nodepad++ installation directory \plugins\APIs. For example, C:\Program Files (x86)\Notepad++\plugins\APIs
To enable auto completion go to Settings → Preferences... → Auto-Completion and select "Function completion" or "Function and word completion". For calltips check "Function parameters hint on input".
To install syntax highlighting go to Language → Define your language..., press Import... button and select the xml file. For default theme use dmf.default.xml, and for Bespin theme use dmf.bespin.xml.
Restart Nodepad++.
To apply syntax highlighting and to enable autocomplete for txt file, set Language → Danmakufu.ph3 in Notepad++ menu.
Known limitations
- Windows-1252 encoding used for calltip documentation. Not sure but this seems to be Notepad++ limitation (utf-8 config doesn't work).
- Autocomplete window doesn't appear when a calltip is shown. Notepad++ limitation.
- Calltips only work for function and not for constants. Scintilla limitation.
- Cannot change calltip background or text color. Scintilla limitation.
-
Why isn't KEY_INVALID included as a constant?
-
Why isn't KEY_INVALID included as a constant?
I missed it. Also forgot about dot operator. Fixed.