SA-MP Forums Archive
Notepad++ Theme Configuration Problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Notepad++ Theme Configuration Problem. (/showthread.php?tid=604803)



Notepad++ Theme Configuration Problem. - Sanady - 10.04.2016

Hello erverybody, I have problem with Notepad++, I downloaded Visual Basic dark theme for it, but when I load it inside Notepad, it`s looks like:

But when I saw screens on github it`s should look like:


Then I saw xml file(theme file) and I saw that there is no defines for pawn language. Does anyone have defines of all words which pawn uses?


Re: Notepad++ Theme Configuration Problem. - Sew_Sumi - 10.04.2016

Read the Tutorial on NotePad++ with PAWN...

After all, it doesn't natively recognize pawn. You have to put it in. Either through the tutorial or with CodeParser.


Re: Notepad++ Theme Configuration Problem. - Darkwood17 - 10.04.2016

You need the PAWN syntax highlight for Notepad++.
As Sew_Sumi said read the tutorial here: https://sampforum.blast.hk/showthread.php?tid=174046

If you need only the syntax highlight download only the userDefineLang.xml file and put it in the Notepad++ Appdata folder. I think you can use this with the theme you downloaded.


Re: Notepad++ Theme Configuration Problem. - DavidGravelli - 10.04.2016

This will help you https://sampforum.blast.hk/showthread.php?tid=174046


Re: Notepad++ Theme Configuration Problem. - Sew_Sumi - 10.04.2016

CodeParser also allows for the most recent function additions to SAMP to be included.

https://sampforum.blast.hk/showthread.php?tid=512798

Reading Slices Tutorial though is a good thing to get into.


Re: Notepad++ Theme Configuration Problem. - Sanady - 11.04.2016

Quote:
Originally Posted by Darkwood17
Посмотреть сообщение
You need the PAWN syntax highlight for Notepad++.
As Sew_Sumi said read the tutorial here: https://sampforum.blast.hk/showthread.php?tid=174046

If you need only the syntax highlight download only the userDefineLang.xml file and put it in the Notepad++ Appdata folder. I think you can use this with the theme you downloaded.
Quote:
Originally Posted by DavidGravelli
Посмотреть сообщение
I saw that tutorial, I read that three times, and I don`t get it. Why is words white, when I switch to mySQL code, program detects good but in other it can`t....


Re: Notepad++ Theme Configuration Problem. - Sew_Sumi - 11.04.2016

Actually, the UserDefineLang.xml that NotePad++ for pawn uses has the bgcolor hardcoded, as well as fgcolor.


Re: Notepad++ Theme Configuration Problem. - Crayder - 11.04.2016

Look for Mauzen's NPP function, define, variable, macro exporter. It exports all of the required files to make the themes based on your includes.


Re: Notepad++ Theme Configuration Problem. - Sew_Sumi - 11.04.2016

Код:
		<Styles>
			<WordsStyle name="DEFAULT" styleID="11" fgColor="C8C8C8" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="D69D85" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="D69D85" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="KEYWORD1" styleID="5" fgColor="4E9CD6" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="KEYWORD2" styleID="6" fgColor="D69D85" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="KEYWORD3" styleID="7" fgColor="D69D85" bgColor="1E1E1E" fontName="" fontStyle="1" />
			<WordsStyle name="KEYWORD4" styleID="8" fgColor="4E9CD6" bgColor="1E1E1E" fontName="" fontStyle="1" />
			<WordsStyle name="COMMENT" styleID="1" fgColor="608B4E" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="COMMENT LINE" styleID="2" fgColor="608B4E" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="NUMBER" styleID="4" fgColor="B5CEA8" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="OPERATOR" styleID="10" fgColor="DCDCDC" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="DELIMINER1" styleID="14" fgColor="D69D85" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="DELIMINER2" styleID="15" fgColor="608B4E" bgColor="1E1E1E" fontName="" fontStyle="0" />
			<WordsStyle name="DELIMINER3" styleID="16" fgColor="4E9CD6" bgColor="1E1E1E" fontName="" fontStyle="0" />
		</Styles>
My attempt at transferring the styles section of the CodeParser output to match the theme.

Just make sure you back up everything and replace the entire section in UserDefineLang.xml.


The theme looks pretty awesome.