How to add comment line in Far Manager's FarMenu.ini file?

Context

I usually edit Far Manager's F2 menu editing FarMenu.ini as pure text file. Pressing F2 brings the menu open, then pressing Alt+F4 opens the file in the editor.

Question

Is it possible to place comments in this FarMenu.ini file, if yes then what is the syntax? (I've tried starting lines with # or // or -- or @, neither work)

2

2 Answers

  • # - you will lose the lines if you edit the file using the interface
  • @rem directly in the script

I've tested this and it works fine (as far as I can see):

# comment
t: test @echo 1 @rem some comment @echo 2
# another comment
e: explorer explorer.
# final

If you edit it using the interface you will lose the comments. Executing test I see the following output:

1
2

The same as in bat-files:

: test echo 1 :: comment echo 2 REM comment echo 3
Output:
echo 1
1
echo 2
2
echo 3
3

More info here

1

You Might Also Like