Discussion:
Vim syntax highlighting files for NH dungeon definition files?
(too old to reply)
Janis Papanagnou
2024-05-11 16:49:11 UTC
Permalink
Are there any syntax definition files for the Vim text editor
to syntactically colorize the NH dungeon definition files?

I noticed that for the 'dungeon.def' file a syntax setting of
'sh' (shell) syntax gives a very good result already.

But is there something for all the '*.dat' files?

Janis
B. R. 'BeAr' Ederson
2024-05-11 20:37:47 UTC
Permalink
Post by Janis Papanagnou
Are there any syntax definition files for the Vim text editor
to syntactically colorize the NH dungeon definition files?
I noticed that for the 'dungeon.def' file a syntax setting of
'sh' (shell) syntax gives a very good result already.
But is there something for all the '*.dat' files?
Try ActionScript. Comments, numbers and text should show up reasonably
differentiated. And "random" and "align" being common methods/properties
in ActionScript they show highlighted up as well. As will true/false.

BeAr
--
===========================================================================
= What do you mean with: "Perfection is always an illusion"? =
===============================================================--(Oops!)===
Janis Papanagnou
2024-05-11 21:07:46 UTC
Permalink
Post by B. R. 'BeAr' Ederson
Post by Janis Papanagnou
Are there any syntax definition files for the Vim text editor
to syntactically colorize the NH dungeon definition files?
I noticed that for the 'dungeon.def' file a syntax setting of
'sh' (shell) syntax gives a very good result already.
But is there something for all the '*.dat' files?
(Sorry, I meant the *.des files.)
Post by B. R. 'BeAr' Ederson
Try ActionScript. Comments, numbers and text should show up reasonably
differentiated. And "random" and "align" being common methods/properties
in ActionScript they show highlighted up as well. As will true/false.
Thanks for your reply!

I assume "ActionScript" is the name I shall choose for the syntax?
Unfortunately it produces nothing for me; only black/white. Its
name is also not listed in my list of available syntax files.

Anyway, I have to apologize for my post...

The *.des files are already sufficiently colorized as I noticed;
not sure what went wrong when I tried it before. It's about the
same quality as dungeon.def with 'sh' syntax set. That means it's
not differentiated at monsters and objects level but readable. I
can see strings, character constants, and comments differentiated,
and the rest as plain text. That's okay for me for now.

(I suppose it's not too difficult to write a specialized one for
NH but I think it's probably not worth the effort.)

Janis
B. R. 'BeAr' Ederson
2024-05-12 06:55:29 UTC
Permalink
On Sat, 11 May 2024 23:07:46 +0200, Janis Papanagnou wrote:

[Syntax highlighting]
Post by Janis Papanagnou
Post by B. R. 'BeAr' Ederson
Post by Janis Papanagnou
But is there something for all the '*.dat' files?
(Sorry, I meant the *.des files.)
I thought as much. ;-)
Post by Janis Papanagnou
Post by B. R. 'BeAr' Ederson
Try ActionScript. Comments, numbers and text should show up reasonably
differentiated. And "random" and "align" being common methods/properties
in ActionScript they show highlighted up as well. As will true/false.
Thanks for your reply!
I assume "ActionScript" is the name I shall choose for the syntax?
Unfortunately it produces nothing for me; only black/white. Its
name is also not listed in my list of available syntax files.
If it is not included in your Vim setup you can get one as additional
download, for instance from here:

https://www.vim.org/scripts/script.php?script_id=1061
Post by Janis Papanagnou
(I suppose it's not too difficult to write a specialized one for
NH but I think it's probably not worth the effort.)
Yes to both.

BeAr
--
===========================================================================
= What do you mean with: "Perfection is always an illusion"? =
===============================================================--(Oops!)===
Loading...