Braces highlighting in Notepad++ changes font to default: how to fix it?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
The title may be a bit confusing, but here's the problem. I use Notepad++ both for coding, and for writing documentation in Markdown. For some reason Markdown is not on the list of "supported languages", so I created a custom language, and changed the font to Arial, as it's easier for me to read.
However now if I use parentheses in the text, Notepad highlights them for me, and during highlighting it doesn't just make them red, it also makes them Courier. Because of some weird kerning issues it also makes parenthes move down and to the right by 1-2 pixels, as they change the font face momentarily, and it just looks very distracting. I'd like to disable this. Let them be highlighted, sure, no problem with that, but I don't want them twitch and flicker from Arial to Courier and back every time I use parentheses.
Typically, to disable this effect, I'd be expected to go to "Style Configurator"; navigate to "Global Styles", and set the font for "Brackets Highlighting" to "empty". That's what I've done, but it doesn't seem to work. Font name is set to "", Font size is set to "", Bold/Italic/Underlined are all unchecked, but it still flickers from Arial to Courier. I checked the XML file with styles, and the value for font face there seems to realy be ="" (empty), and yet it still flickers.
I also looked for a way to disable parenthesis highlighting for my custom language, but cannot find a way to do it.
Any suggestions?
UPDATE: Here's another solution I tried that DOES NOT work (or at least doesn't work easily). It may seem from the menus that one can try to set a default (global) font in the style configurator, and then specify different fonts for different languages, but it is not possible. Here's what I tried: went to "Style configurator", and set "Default Style" to "Arial". Now my MD is in Arial (good), but my code is in Arial as well (horrible). Then I went to one of the languages (Python), and changed "DEFAULT" Style "Font Name" to "Courier New". It changed indents and line spaces, but actually did not change font-face, as it appears that other Styles (STRING, NUMBER, COMMENTLINE etc.) do not inherit to DEFAULT.
If I manually change all of the styles for "Python" to Courier, it actually does seem to work, so technically it is a working solution, but it is super-awkward, as one would have to do it for every language they work with, and every style within this language, instead of just changing it once for Markdown.
I am now wondering whether it is possible to integrate Markdown into Style Configurator. Should I be able to describe it in the "stylers.XML" directly? Or would it be too hard?
UPDATE2: Another option that does not work: adding a language to the list of default languages (via "langs.xml"), or hijacking one of existing languages for "md" extension, to set them to Arial. Adding does not work because, well, it just does not make anything happen. It seems that the list of languages is hardcoded somewhere inside Notepad, and only then uploaded from XML. Just adding a new item to the XML doesn't create a new language.
There's a nice "neutral" language called "normal" with a default ext of "txt", that would be ideal for hosting "md" as well. Alas, it does not have any style fields to edit, so it is impossible to set a font for it.
Adding a DEFAULT style to "normal" language in "stylers.xml" doesn't change anything; it is simply ignored.
Hijacking a proper language that is already in the list also does not work, as languages have all sort of special characters defined for them, and it doesn't seem to be possible to edit those. You can clean all keywords and change comment sign in "lang.xml", but it keeps processing numbers and operators as special styles. And finally, even if you manually set all styles to "Arial, black", it still flickers parentheses to courier as you type. So this is also a dead end.
Any other ideas, anyone?
notepad++
add a comment |
The title may be a bit confusing, but here's the problem. I use Notepad++ both for coding, and for writing documentation in Markdown. For some reason Markdown is not on the list of "supported languages", so I created a custom language, and changed the font to Arial, as it's easier for me to read.
However now if I use parentheses in the text, Notepad highlights them for me, and during highlighting it doesn't just make them red, it also makes them Courier. Because of some weird kerning issues it also makes parenthes move down and to the right by 1-2 pixels, as they change the font face momentarily, and it just looks very distracting. I'd like to disable this. Let them be highlighted, sure, no problem with that, but I don't want them twitch and flicker from Arial to Courier and back every time I use parentheses.
Typically, to disable this effect, I'd be expected to go to "Style Configurator"; navigate to "Global Styles", and set the font for "Brackets Highlighting" to "empty". That's what I've done, but it doesn't seem to work. Font name is set to "", Font size is set to "", Bold/Italic/Underlined are all unchecked, but it still flickers from Arial to Courier. I checked the XML file with styles, and the value for font face there seems to realy be ="" (empty), and yet it still flickers.
I also looked for a way to disable parenthesis highlighting for my custom language, but cannot find a way to do it.
Any suggestions?
UPDATE: Here's another solution I tried that DOES NOT work (or at least doesn't work easily). It may seem from the menus that one can try to set a default (global) font in the style configurator, and then specify different fonts for different languages, but it is not possible. Here's what I tried: went to "Style configurator", and set "Default Style" to "Arial". Now my MD is in Arial (good), but my code is in Arial as well (horrible). Then I went to one of the languages (Python), and changed "DEFAULT" Style "Font Name" to "Courier New". It changed indents and line spaces, but actually did not change font-face, as it appears that other Styles (STRING, NUMBER, COMMENTLINE etc.) do not inherit to DEFAULT.
If I manually change all of the styles for "Python" to Courier, it actually does seem to work, so technically it is a working solution, but it is super-awkward, as one would have to do it for every language they work with, and every style within this language, instead of just changing it once for Markdown.
I am now wondering whether it is possible to integrate Markdown into Style Configurator. Should I be able to describe it in the "stylers.XML" directly? Or would it be too hard?
UPDATE2: Another option that does not work: adding a language to the list of default languages (via "langs.xml"), or hijacking one of existing languages for "md" extension, to set them to Arial. Adding does not work because, well, it just does not make anything happen. It seems that the list of languages is hardcoded somewhere inside Notepad, and only then uploaded from XML. Just adding a new item to the XML doesn't create a new language.
There's a nice "neutral" language called "normal" with a default ext of "txt", that would be ideal for hosting "md" as well. Alas, it does not have any style fields to edit, so it is impossible to set a font for it.
Adding a DEFAULT style to "normal" language in "stylers.xml" doesn't change anything; it is simply ignored.
Hijacking a proper language that is already in the list also does not work, as languages have all sort of special characters defined for them, and it doesn't seem to be possible to edit those. You can clean all keywords and change comment sign in "lang.xml", but it keeps processing numbers and operators as special styles. And finally, even if you manually set all styles to "Arial, black", it still flickers parentheses to courier as you type. So this is also a dead end.
Any other ideas, anyone?
notepad++
add a comment |
The title may be a bit confusing, but here's the problem. I use Notepad++ both for coding, and for writing documentation in Markdown. For some reason Markdown is not on the list of "supported languages", so I created a custom language, and changed the font to Arial, as it's easier for me to read.
However now if I use parentheses in the text, Notepad highlights them for me, and during highlighting it doesn't just make them red, it also makes them Courier. Because of some weird kerning issues it also makes parenthes move down and to the right by 1-2 pixels, as they change the font face momentarily, and it just looks very distracting. I'd like to disable this. Let them be highlighted, sure, no problem with that, but I don't want them twitch and flicker from Arial to Courier and back every time I use parentheses.
Typically, to disable this effect, I'd be expected to go to "Style Configurator"; navigate to "Global Styles", and set the font for "Brackets Highlighting" to "empty". That's what I've done, but it doesn't seem to work. Font name is set to "", Font size is set to "", Bold/Italic/Underlined are all unchecked, but it still flickers from Arial to Courier. I checked the XML file with styles, and the value for font face there seems to realy be ="" (empty), and yet it still flickers.
I also looked for a way to disable parenthesis highlighting for my custom language, but cannot find a way to do it.
Any suggestions?
UPDATE: Here's another solution I tried that DOES NOT work (or at least doesn't work easily). It may seem from the menus that one can try to set a default (global) font in the style configurator, and then specify different fonts for different languages, but it is not possible. Here's what I tried: went to "Style configurator", and set "Default Style" to "Arial". Now my MD is in Arial (good), but my code is in Arial as well (horrible). Then I went to one of the languages (Python), and changed "DEFAULT" Style "Font Name" to "Courier New". It changed indents and line spaces, but actually did not change font-face, as it appears that other Styles (STRING, NUMBER, COMMENTLINE etc.) do not inherit to DEFAULT.
If I manually change all of the styles for "Python" to Courier, it actually does seem to work, so technically it is a working solution, but it is super-awkward, as one would have to do it for every language they work with, and every style within this language, instead of just changing it once for Markdown.
I am now wondering whether it is possible to integrate Markdown into Style Configurator. Should I be able to describe it in the "stylers.XML" directly? Or would it be too hard?
UPDATE2: Another option that does not work: adding a language to the list of default languages (via "langs.xml"), or hijacking one of existing languages for "md" extension, to set them to Arial. Adding does not work because, well, it just does not make anything happen. It seems that the list of languages is hardcoded somewhere inside Notepad, and only then uploaded from XML. Just adding a new item to the XML doesn't create a new language.
There's a nice "neutral" language called "normal" with a default ext of "txt", that would be ideal for hosting "md" as well. Alas, it does not have any style fields to edit, so it is impossible to set a font for it.
Adding a DEFAULT style to "normal" language in "stylers.xml" doesn't change anything; it is simply ignored.
Hijacking a proper language that is already in the list also does not work, as languages have all sort of special characters defined for them, and it doesn't seem to be possible to edit those. You can clean all keywords and change comment sign in "lang.xml", but it keeps processing numbers and operators as special styles. And finally, even if you manually set all styles to "Arial, black", it still flickers parentheses to courier as you type. So this is also a dead end.
Any other ideas, anyone?
notepad++
The title may be a bit confusing, but here's the problem. I use Notepad++ both for coding, and for writing documentation in Markdown. For some reason Markdown is not on the list of "supported languages", so I created a custom language, and changed the font to Arial, as it's easier for me to read.
However now if I use parentheses in the text, Notepad highlights them for me, and during highlighting it doesn't just make them red, it also makes them Courier. Because of some weird kerning issues it also makes parenthes move down and to the right by 1-2 pixels, as they change the font face momentarily, and it just looks very distracting. I'd like to disable this. Let them be highlighted, sure, no problem with that, but I don't want them twitch and flicker from Arial to Courier and back every time I use parentheses.
Typically, to disable this effect, I'd be expected to go to "Style Configurator"; navigate to "Global Styles", and set the font for "Brackets Highlighting" to "empty". That's what I've done, but it doesn't seem to work. Font name is set to "", Font size is set to "", Bold/Italic/Underlined are all unchecked, but it still flickers from Arial to Courier. I checked the XML file with styles, and the value for font face there seems to realy be ="" (empty), and yet it still flickers.
I also looked for a way to disable parenthesis highlighting for my custom language, but cannot find a way to do it.
Any suggestions?
UPDATE: Here's another solution I tried that DOES NOT work (or at least doesn't work easily). It may seem from the menus that one can try to set a default (global) font in the style configurator, and then specify different fonts for different languages, but it is not possible. Here's what I tried: went to "Style configurator", and set "Default Style" to "Arial". Now my MD is in Arial (good), but my code is in Arial as well (horrible). Then I went to one of the languages (Python), and changed "DEFAULT" Style "Font Name" to "Courier New". It changed indents and line spaces, but actually did not change font-face, as it appears that other Styles (STRING, NUMBER, COMMENTLINE etc.) do not inherit to DEFAULT.
If I manually change all of the styles for "Python" to Courier, it actually does seem to work, so technically it is a working solution, but it is super-awkward, as one would have to do it for every language they work with, and every style within this language, instead of just changing it once for Markdown.
I am now wondering whether it is possible to integrate Markdown into Style Configurator. Should I be able to describe it in the "stylers.XML" directly? Or would it be too hard?
UPDATE2: Another option that does not work: adding a language to the list of default languages (via "langs.xml"), or hijacking one of existing languages for "md" extension, to set them to Arial. Adding does not work because, well, it just does not make anything happen. It seems that the list of languages is hardcoded somewhere inside Notepad, and only then uploaded from XML. Just adding a new item to the XML doesn't create a new language.
There's a nice "neutral" language called "normal" with a default ext of "txt", that would be ideal for hosting "md" as well. Alas, it does not have any style fields to edit, so it is impossible to set a font for it.
Adding a DEFAULT style to "normal" language in "stylers.xml" doesn't change anything; it is simply ignored.
Hijacking a proper language that is already in the list also does not work, as languages have all sort of special characters defined for them, and it doesn't seem to be possible to edit those. You can clean all keywords and change comment sign in "lang.xml", but it keeps processing numbers and operators as special styles. And finally, even if you manually set all styles to "Arial, black", it still flickers parentheses to courier as you type. So this is also a dead end.
Any other ideas, anyone?
notepad++
notepad++
edited Feb 1 at 21:23
ampanmdagaba
asked Feb 1 at 18:08
ampanmdagabaampanmdagaba
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Notepad++ offers so many options, it may be difficult to find where to set them. Here are some places to set the font and default file format that might help... please let me know if it works.
In Preferences
> New Document
, set Default language
to Markdown.
In Preferences
> Highlighting
, set Smart Highlighting
> Enable
and/or Highlight Matching Tags
> Enable
to unchecked.
As you mentioned, in Style Configurator
, you can set the Global override
font and Brace highlight style
fonts. You can set them specifically to Arial, rather than leaving either blank. You can also edit stylers.xml* manually.
*[BTW, Inconsolata, shown above, is useful to differentiate zero and O, L, I and 1]
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401086%2fbraces-highlighting-in-notepad-changes-font-to-default-how-to-fix-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Notepad++ offers so many options, it may be difficult to find where to set them. Here are some places to set the font and default file format that might help... please let me know if it works.
In Preferences
> New Document
, set Default language
to Markdown.
In Preferences
> Highlighting
, set Smart Highlighting
> Enable
and/or Highlight Matching Tags
> Enable
to unchecked.
As you mentioned, in Style Configurator
, you can set the Global override
font and Brace highlight style
fonts. You can set them specifically to Arial, rather than leaving either blank. You can also edit stylers.xml* manually.
*[BTW, Inconsolata, shown above, is useful to differentiate zero and O, L, I and 1]
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
add a comment |
Notepad++ offers so many options, it may be difficult to find where to set them. Here are some places to set the font and default file format that might help... please let me know if it works.
In Preferences
> New Document
, set Default language
to Markdown.
In Preferences
> Highlighting
, set Smart Highlighting
> Enable
and/or Highlight Matching Tags
> Enable
to unchecked.
As you mentioned, in Style Configurator
, you can set the Global override
font and Brace highlight style
fonts. You can set them specifically to Arial, rather than leaving either blank. You can also edit stylers.xml* manually.
*[BTW, Inconsolata, shown above, is useful to differentiate zero and O, L, I and 1]
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
add a comment |
Notepad++ offers so many options, it may be difficult to find where to set them. Here are some places to set the font and default file format that might help... please let me know if it works.
In Preferences
> New Document
, set Default language
to Markdown.
In Preferences
> Highlighting
, set Smart Highlighting
> Enable
and/or Highlight Matching Tags
> Enable
to unchecked.
As you mentioned, in Style Configurator
, you can set the Global override
font and Brace highlight style
fonts. You can set them specifically to Arial, rather than leaving either blank. You can also edit stylers.xml* manually.
*[BTW, Inconsolata, shown above, is useful to differentiate zero and O, L, I and 1]
Notepad++ offers so many options, it may be difficult to find where to set them. Here are some places to set the font and default file format that might help... please let me know if it works.
In Preferences
> New Document
, set Default language
to Markdown.
In Preferences
> Highlighting
, set Smart Highlighting
> Enable
and/or Highlight Matching Tags
> Enable
to unchecked.
As you mentioned, in Style Configurator
, you can set the Global override
font and Brace highlight style
fonts. You can set them specifically to Arial, rather than leaving either blank. You can also edit stylers.xml* manually.
*[BTW, Inconsolata, shown above, is useful to differentiate zero and O, L, I and 1]
answered Feb 1 at 19:46
DrMoishe PippikDrMoishe Pippik
10.5k21432
10.5k21432
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
add a comment |
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Wait, but if I uncheck Highlighting in the preferences, wouldn't it stop doing it for code? I would like to keep highlighting when I code; I just want it to be less annoying when I write in md. Same with setting font-face explicitly in "global styles": won't it make Notepad highlight brackets in Arial when I code in Courier? I suspect the non-behavior of font="" may actually be a bug. Just wanted to be sure.
– ampanmdagaba
Feb 1 at 19:51
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
Yes, your correct on those comments... Perhaps create separate N++ program folders, with different defaults?
– DrMoishe Pippik
Feb 1 at 20:09
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
But that would be the ultimate defeat, as I would not be able to open the program and the md description of it in the same editor! There has to be a better solution! =]
– ampanmdagaba
Feb 1 at 20:11
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401086%2fbraces-highlighting-in-notepad-changes-font-to-default-how-to-fix-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown