Discussion:
[Notepad-plus-plus] feature request here?
Marcin Krol
2010-02-25 19:15:21 UTC
Permalink
Hello everyone,

I'm using notepad++ and it's great, although I'm missing two tiny features:

1. I'm editing Mako templates quite a lot, which are really HTML with
some programming language (Python/Mako) code fragments.

I would want to switch automatically to HTML language type when
double-clicking .mako file. However, for now there doesn't seem to be
option for that, even though I can enter a custom file extension.

2. Vertical block selection: it's there in some editors, and it's useful
sometimes.

Thanks for n++!

Regards,
mk
Paul Catalani
2010-02-25 20:25:42 UTC
Permalink
mk,
I'm not an authority on Notepad++, but this may work for you...

1) edit %APPDATA%\Notepad++\stylers.xml
2) search for 'html', the line will look like:
<LexerType name="html" desc="HTML" ext="">
3) add 'mako' to the ext attribute.
<LexerType name="html" desc="HTML" ext="mako">

4) restart Notepad++

Cheers,
Paul
Post by Marcin Krol
Hello everyone,
1. I'm editing Mako templates quite a lot, which are really HTML with
some programming language (Python/Mako) code fragments.
I would want to switch automatically to HTML language type when
double-clicking .mako file. However, for now there doesn't seem to be
option for that, even though I can enter a custom file extension.
2. Vertical block selection: it's there in some editors, and it's useful
sometimes.
Thanks for n++!
Regards,
mk
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Notepad-plus-plus mailing list
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
--
"No government ever voluntarily reduces itself in size. So, governments'
programs, once launched, never disappear." - Ronald Reagan
Marcin Krol
2010-02-25 20:48:47 UTC
Permalink
Post by Paul Catalani
mk,
I'm not an authority on Notepad++, but this may work for you...
1) edit %APPDATA%\Notepad++\stylers.xml
<LexerType name="html" desc="HTML" ext="">
3) add 'mako' to the ext attribute.
<LexerType name="html" desc="HTML" ext="mako">
4) restart Notepad++
Thanks, this worked!

Although, being pain in the ass, I'll ask if it's possible to set this
association on more than one extension: I tend to edit HTML in n++ as
well...

Regards,
mk
Jocelyn Legault
2010-02-25 21:06:31 UTC
Permalink
Err...

you could just have gone to:

Menu > Settings > Style Configurator

Select HTML as the language

and added "mako" in the user extensions.
Post by Marcin Krol
Post by Paul Catalani
mk,
I'm not an authority on Notepad++, but this may work for you...
1) edit %APPDATA%\Notepad++\stylers.xml
<LexerType name="html" desc="HTML" ext="">
3) add 'mako' to the ext attribute.
<LexerType name="html" desc="HTML" ext="mako">
4) restart Notepad++
Thanks, this worked!
Although, being pain in the ass, I'll ask if it's possible to set this
association on more than one extension: I tend to edit HTML in n++ as
well...
Regards,
mk
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Notepad-plus-plus mailing list
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
Continue reading on narkive:
Loading...