Author Topic: Notepad++ plugins for Touhou Danmakufu ph3  (Read 4249 times)

Notepad++ plugins for Touhou Danmakufu ph3
« 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
Download

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.
« Last Edit: March 15, 2015, 10:19:34 AM by nlog »

Uruwi

  • Nightmare of Torrential Precipitation
  • 478 million goober
Re: Notepad++ plugins for Touhou Danmakufu ph3
« Reply #1 on: March 29, 2015, 04:42:34 AM »
Why isn't KEY_INVALID included as a constant?
foo = foldl $ flip ($)
Highest difficulty 1CCed for each game, by shot type in the original order. (-: never 1CCed on any difficulty, or never used; E: easy, N: normal, H: hard, L / U: lunatic / unreal.)
EoSD [NNNE] PCB [EE--N-] IN [NEEE + Ex Border] PoFV [Mystia N, Mystia E no charge] MoF [EN--H- + Ex Marisa B] SA [N-----] UFO [----EN] TD [NENE] DDC [EE-EHE + Ex Marisa B & Sakuya A] LoLK [PD --N- Legacy ---N] EE [N- + Ex Yabusame] EMS [N-- + Ex Yabusame] RMI [NHN + Ex YaoSuku]
Avelantis (demo) Easy YuukiB 426,077,200

Re: Notepad++ plugins for Touhou Danmakufu ph3
« Reply #2 on: April 06, 2015, 06:42:30 PM »
Why isn't KEY_INVALID included as a constant?
I missed it. Also forgot about dot operator. Fixed.