I edit and create a lot of .bat and .cmd files. The lack of syntax highlighting for these files really weakens the experience.
Also I use spaces for indentation. This looks really bad when the default font is not fixed width.
I edit and create a lot of .bat and .cmd files. The lack of syntax highlighting for these files really weakens the experience.
Also I use spaces for indentation. This looks really bad when the default font is not fixed width.
Hi David,
Thank you for the feedback. May I ask for more detail on what looks bad that you see when using spaces in a non-fixed-width font?
Without the fixed width font some code could look like this:
DISABLE_PACKAGE_CODEGEN := 1
DISABLE_DOXYGEN := 1
NODEPS := 1
DONT_INCLUDE_DEP_FILES := 1
OSBUILDVERSION := 1703
P4_EXPORT_ROOT := //us
With a fixed width font all of the values of the variables are lined up like this:
DISABLE_PACKAGE_CODEGEN := 1
DISABLE_DOXYGEN := 1
NODEPS := 1
DONT_INCLUDE_DEP_FILES := 1
OSBUILDVERSION := 1703
P4_EXPORT_ROOT := //us
With the non fixed-width fonts the letters are different widths from each other and the space characters are very narrow. This makes lining up code in an easy to read way difficult to do.
I guess if you were creating code in code writer you could line it up a bit better to start with, but still you can see in my second example it is still not perfectlt lined up. With a fixed width font it lines up perfectly.
[Modified 6 years ago]
Hi David,
Yes with spaces in non-fixed-width, it's difficult to line things up properly when the spaces are in between characters (vs. at the start of the line). It would be the same in pretty much any code editor.
In that scenario (non-fixed-width), I'd probably recommend you use tabs instead since tab stops should let you align to the tab stop X-coordinates.
It would be the same in pretty much any code editor.
But every other code editor that I've used has a fixed width font by default.
Hello,
I'm pretty sure we set Consolas as the default font, and that is fixed-width. Either way, you can change the font in the Settings pane.
Cambria was selected when I first opened the program.
Hi David,
Thank you for reporting this. It appears that when we added some more font options in the previous build, we didn't update the default font index. So it pushed the default to something other than Consolas. We've fixed this for the next build.
[Modified 6 years ago]
Please log in to a validated account to post comments.