Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'&' not visible in C++ files #797

Closed
timofey-retailnext opened this issue Aug 24, 2015 · 4 comments
Closed

'&' not visible in C++ files #797

timofey-retailnext opened this issue Aug 24, 2015 · 4 comments

Comments

@timofey-retailnext
Copy link

versions tested: 5.9.8,6.7.5,6.7.8.2,6.7.9.2,6.8,6.8.1,6.8.2

given a string " while (x < ((x_end-d_num) & ~0x7) /(x_end-x-1)>=d_num/) {"

when I store it as a test file I see '&' before ~0x7,
when I store it as .cpp/.h file '&' disappears.

Similar, '&&' disappears in string "for (int x8=8; x8>0 && x < x_end; --x8) {}"
h
txt

@h-h-h-h
Copy link
Contributor

h-h-h-h commented Aug 25, 2015

See issues #547, #729 and similar ones.

@timofey-retailnext
Copy link
Author

Thanks for clarification. I'm using 6.8.2 and seems that "Source Code Pro" is still default font for C/C++ stylers.
I explicitly changed "C operators" and "C++ operators" font to "Courier New" and this works for me.

P.S. does NPP update no a newer version update prog.lang.stylers or older one is reused ?
In other words do I need to perform this manual bypass after every NPP upgrade (until font issue will be finally fixed) ?

@h-h-h-h
Copy link
Contributor

h-h-h-h commented Aug 25, 2015

If it's not working properly, it should be remarked in the appropriate issue.

@donho
Copy link
Member

donho commented Sep 2, 2015

@timofey-retailnext
stylers.xml will never be erased by installer since this file can be modified by users via Styler Configurator.

In v6.8 & v6.8.1, Notepad++ Installer put Source Code Pro font in Notepad++ installed directory, load it then use it, without interfering with system.

In v6.8.2, Installer removes Source Code Pro font if user upgrad from 6.8/6.8.1, and Notepad++ doesn't load Source Code Pro font, but use only the font in stylers.xml. If Source Code Pro font is in stylers.xml and user has installed it before, then it will be used.

@h-h-h-h You can use Styler Configurator to set Default font as system font or remove stylers.xml so Notepad++ will regenerate it on startup. Otherwise there's no obvious way to solve it.

@donho donho closed this as completed Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants