how to make '' AND "" syntax highlight strings for python in notepad++?

2

Currently I have only "doubleQuotes" highlighted but the 'single ones' stay normal. Can someone confirm? Or have a solution how to fix that?

In the stylers.xml there is WordsStyle named STRING which has the "doubleQuote" color. But neither there nor in the langs.xml I'm able to see a way to make it work for 'singleQuotes' too. Or at least I know too little to about configuring those Notepad++ files.

Please don't suggest another editor ;] thx!

ewerybody

Posted 2013-03-06T16:31:02.027

Reputation: 131

go to language in the top manu and make sure python is selected – Ionut Hulub – 2013-03-06T16:37:02.423

@BurhanKhalid: didn't know the page. Here are similar questions where you didn't suggest this yet. ;] – ewerybody – 2013-03-06T17:50:01.913

@IonutHulub: is already triggered by .py extension :/ Also: The python specific coloring for "doubleQuotes" works! – ewerybody – 2013-03-06T17:55:53.687

Answers

1

In the default language styling that comes with Notepad++:

  • 'single' quotes are controlled by the CHARACTER Style
  • "double" ones by STRING.

ewerybody

Posted 2013-03-06T16:31:02.027

Reputation: 131

Seems there is no way to unify them tho :/. However. Works properly now. – ewerybody – 2013-10-22T13:54:26.217

1

on the menu bar, select settings / Style Configurator / Python. then work on the TRIPLE and TRIPLEDOUBLE settings.

user255825

Posted 2013-03-06T16:31:02.027

Reputation:

hmm.. No. What you mean does the '''comment block stuff''' thats used for .doc Thats all set up properly. – ewerybody – 2013-10-22T13:44:42.513