I took a look at the previously posted Emacs major mode for Dialog but it didn’t really do what I wanted so I wrote my own and made it available here if anyone wants to give it a try:
This is great! Thanks!
Glad you found it useful
You might want to grab the latest version–I added syntax highlighting for built-ins and I fixed some bugs with M-q dialog-fill-paragraph and C-c C-f dialog-format-buffer.
Please let me know if you run into any bugs.
“Latest” as in later than the 19th? I’m definitely running into indent-buffer doing completely the wrong thing.
Yes, I started re-working dialog-fill-paragraph and dialog-format-buffer on the 20th and finished up on the 21st. You can grab the latest version here.
I tested dialog-format-buffer on the standard library and some other games and I’ve tried to make it so that it’s not too agressive. It should mainly just align single-line rules on a tab-stop and wrap text to an 80 chars line width.
One format difference w/ the standard library is that I don’t use tabs between the rule head and the body for single line rules. I’m in the camp that says tabs are only for indenting and spaces should be used for alignment
(it makes everything line up independent of tab size)