This is a Sublime Text 2/3 package for the Touhou Danmakufu (東方弾幕風) scripting language. See below because I tell you to go download Sublime if you don't have it.
Designed for easy addition of support for arbitrary languages and enabling of further development because I felt like it.
(View repository on GitHub)Features ● Syntax highlighting for Danmakufu scripts (.dnh), aimed at ph3 syntax but works fine for 0.12m
● Code completion for all ph3 engine library functions, with fuzzy matching and tabbable parameters
● Function documentation, available in context menu and through ctrl+super+d by default
● Sublime is probably better than the editor you're using now, considering you write Danmakufu scripts



Note: The function documentation for the Danmakufu ph3 library is not complete, and any help would be appreciated. The existing dictionary file (danmakufu-completions.sublime-settings) has everything prepped to add documentation, it just has to be put into a string format (i.e. escape newlines and tabs) and it should be really obvious what to do if you look at the file. Contribute by either uploading an updated file to this thread, or by directly sending a pull request on GitHub.
What is Sublime Text?Sublime Text is a text editor with a plethora of great features out of the box, some of which are showcased on the main site. It has a Python plugin API that makes it fairly easy to add new features to the editor, and its package community is respectably large. On top of that, the Package Control utility makes it stupidly easy to get plugins instantly. I've used various editors and IDEs in the past for development, but Sublime quickly became my editor of choice, so I chose to develop a plugin to first and foremost make it nicer and easier to write DNH scripts, but also to give people more reason to use an editor like this.
For example, multiple selections are super useful. ST3 gives you the ability to jump to the declaration of a function, even if it's in some unopen file. You can show a list of all the functions declared in a file, search through them and jump to it. You can set bookmarks in your code and skip through them. It's just all around really good and feels seamless.
Now, I've been on RaNGE for a long time. The new scripters we get here generally aren't already well-versed in programming and often this is their first experience coding anything at all. Over the years, all we've done in terms of talking about text editors is suggesting that people pick up Notepad++, and from experience the vast majority of people either
a) use Notepad++ because we say so, or
b) haven't heard us recommend it so they still use their system's default text editor.
So, I'm giving people an incentive to switch to Sublime. If you guys like it, please advertise it as well.
Downloads are available from the above link. It works perfectly fine as-is, but Sublime Text is proprietary software and so you have to pay for a license or else it'll bug you every couple of saves. You have three options: deal with it like it's WinRAR, buy a license (lol), or use some sort of computer magic to get it to stop.
Installation ● Install Package Control:
https://sublime.wbond.net/installation and restart Sublime Text.
● Preferences → Package Control → Install Package → Danmakufu, and restart again. Holy cow how easy can you get.
Language support for Atom
https://github.com/drakeirving/atom-language-danmakufuFor those who use
Atom, I've also published an Atom package implementing Danmakufu language support.
However, this is all the package provides, so no code completion or function documentation as you would get from the Sublime package.
Additionally, I've added icon support for .dnh files to the
file-icons Atom package, so if you are interested, check it out as well.