• Vim syntax highlighting files for NH dungeon definition files?

    From Janis Papanagnou@21:1/5 to All on Sat May 11 18:49:11 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From B. R. 'BeAr' Ederson@21:1/5 to Janis Papanagnou on Sat May 11 22:37:47 2024
    On Sat, 11 May 2024 18:49:11 +0200, Janis Papanagnou wrote:

    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!)===

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to B. R. 'BeAr' Ederson on Sat May 11 23:07:46 2024
    On 11.05.2024 22:37, B. R. 'BeAr' Ederson wrote:
    On Sat, 11 May 2024 18:49:11 +0200, Janis Papanagnou wrote:

    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.)


    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From B. R. 'BeAr' Ederson@21:1/5 to Janis Papanagnou on Sun May 12 08:55:29 2024
    On Sat, 11 May 2024 23:07:46 +0200, Janis Papanagnou wrote:

    [Syntax highlighting]
    But is there something for all the '*.dat' files?

    (Sorry, I meant the *.des files.)

    I thought as much. ;-)

    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

    (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!)===

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)