Edditoria / markdown-plus-plus

Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
MIT License
1.5k stars 277 forks source link

Background Color is still white #52

Closed DerekZiemba closed 4 years ago

DerekZiemba commented 4 years ago

Is there something I need to do to make the background use the theme color? Currently using obsidian, but this is a problem in all the themes.

image

Edditoria commented 4 years ago

Did you switch the main theme to Obsidian in NPP setting? (Settings ▶︎ Style Configurator ▶︎ Select theme)

ichbinsteffen commented 4 years ago

@Edditoria Markdown is not in the list of languages in the Style Configurator though. So all I can do is to choose Global Styles as the language and Global Override as the Style, and then I have to manually configure the color. Is that what you are suggesting?

jf20191031 commented 4 years ago

@DerekZiemba @ichbinsteffen

The .xml files in this GitHub package are not complete style files but only user defined language files. That's way they work only properly if you use them with the same named style file. The Bespin theme DerekZiemba is using comes with Notepad++ and is automatically copied to your computer along with many other style files when the application gets installed. The style files are in the folder C: \ Users \ UserName \ AppData \ Roaming \ Notepad ++ \ themes \. You should therefore click the menu Settings -> Style Configurator and select the theme Bespin or another one according to the chosen language file (Select theme). kép But if you only see the Default (stylers.xml) in the menu, then your Notepad ++ was probably launched in a user account that does not have admin rights. In my experience, the problem is that by the installation the above folder themes is not automatically created in every user account on the computer. You should therefore log on to the computer as an admin, look for the themes folder in the admin account and copy the folder and its contents to the other user account (i.e. those without admin rights). You had best not to do this as an admin, otherwise you cannot easily change the newly created folder in the user account without admin rights later. I don't know if this is a "clean" way to fix your problem, but at least it worked fine for me. There is also another option. You can install the selected style file separately. To do this, you should select the Settings -> Import -> Import style themes ... menu. But even in this case you need the corresponding style file and also have to start Notepad++ with administrator rights. The new style file will not be installed in the folder C: \ Users \ UserName \ AppData \ Roaming \ Notepad ++ \ Themes \, but in the folder C: \ Programs \ Notepad++ \ Themes \.

See also this relevant topic: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2507#issue-186296843

Edditoria commented 4 years ago

@ichbinsteffen Which Notepad++ theme are you using?

In normal situation, you don't need to change background and foreground colors in NPP. I don't recommend to force global colors and font-size. It's because some characters in some UDLs (Not only Markdown UDL) may not display properly.

ichbinsteffen commented 4 years ago

@jf20191031

But if you only see the Default (stylers.xml) in the menu, then your Notepad ++ was probably launched in a user account that does not have admin rights.

That happens to be the case and therefore i only have the Default style. I tried to install Obsidian on my machine at work, where I do not have admin rights and Notepad++ is only available to install over SCCM and might even be modified by our admin. idk. What I could do, by your description, is to take the style files from my machine at home and copy them over to the themes folder at work. I might try that at some point, I dont think our admin cares about my style preferences a tiny bit 😊

Edditoria commented 4 years ago

Nice to hear a possible solution. I would consider this issue solved. Thanks!