OpenXcom Forum

Modding => Help => Topic started by: robin on May 04, 2025, 02:04:49 pm

Title: linux text editor for ruleset
Post by: robin on May 04, 2025, 02:04:49 pm
What text editor do you suggest to use on Linux for ruleset editing?
On windows I use Notepad++ which is basically perfect for the purpose.
I'm trying Geany but the YAML syntax highlight is not as good; also it does not seem to have the nice ALT keyboard shortcuts to collapse levels.
(I guess I could try to install Npp using Wine, but this would be the last resort.)
Thanks
Title: Re: linux text editor for ruleset
Post by: Meridian on May 04, 2025, 02:18:12 pm
VSCode
Title: Re: linux text editor for ruleset
Post by: Buscher on May 04, 2025, 07:06:27 pm
VSCode

This.

Visual Studio Code together with
- OpenXcom Ruleset Tools (https://marketplace.visualstudio.com/items?itemName=openxcom.ruleset-tools)
- YAML (https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)
- Linter (https://marketplace.visualstudio.com/items?itemName=fnando.linter)
is a strong combination to reduce the amount of errors without having to start the game.

You can also try Pedro's VSCode OpenXcom Modding Tools (https://openxcom.org/forum/index.php?topic=8896.0)
For the above mentioned linter I am using this configuration for yamllint (https://raw.githubusercontent.com/BeatAroundTheBuscher/ROSIGMA/refs/heads/main/.yamllint.yml) which you can also use in a Github/Codeberg Workflow.
Title: Re: linux text editor for ruleset
Post by: R1dO on May 04, 2025, 10:09:46 pm
As a fellow Linux (and occasionally `geany`) user I wholeheartedly agree with the recommendation by the other posters.

`VSCode` gets the job done.

As for the recommendations from Buscher.
I can only vouch for the "OpenXcom Ruleset Tools" and "yaml (by redhat)" links. Those work like a charm.
For the others I have no experience with them, so I refrain from any 'advisory'.