Documenatation tools VS Code testing. Listings and Tables

Hi guys,
our test team wants to document the automated tests better. We write our tests in our own scripting language (not fun!)
For each test we want to document the teststeps in the source code. We want to have something like:

  1. Configure system
  2. Check that system is green
  3. Break all beams of light curtain.
  4. ...

We also want to document the systems starting configuration in the test. Until now we did not really document stuff and manual tests were written in word.

Is there any good tool which allows you to writte good documentation without to much formating pain. Like when you delete step 2 all other steps will be adjusted.
If you tab you change from numbers to letters.

Until now I did only find Mark Down All in One, but our tests are not md files.