How to use fixed-width spaces?
-
Notepad++ v8.6.5 (64-bit) on Windows 10 Pro
Build time : Mar 29 2024 - 17:04:43
Path : C:\Users\USER\Apps\Notepad++\notepad++.exe
Command Line : “C:\Users\USER\Apps\Notepad++\change.log”
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows Server 2012 R2 Standard (64-bit
OS Build : 9600.21620
Current ANSI codepage : 1252
Plugins :
AutoSave (2)
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)In NPP I’m editing Perl code and I’m using a courier font. All the letters show up fine but spaces show up as tiny variable width spaces. How do I get the spaces to show in the fixed-width courier font?
Under Settings, Style Configurator, for the Perl, DEFAULT settings I have Courier 7 pt. The other font name and size values for Perl are blank. Like for IDENTIFIER. Can we have a default font name and font size setting for all Perl files.
I’m also having trouble finding where the editor font is set, the font that shows my code which I’m editing. I thought it was under Settings, Preferences.
Thank you!
-
Settings > Style Configurator > Global Styles > Default Style is where you set the main font that is inherited by all the other styles in the Style Configurator, including the Perl styles. The font for spaces and tabs is determined by that style. The Settings > Style Configurator > Perl > DEFAULT style is only used for text that the lexer cannot figure out how to assign to any color (which is why the default color in the default theme is red, to indicate that it’s an error that doesn’t match anything that the lexer can understand as Perl).