netr0n / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Notepad++ Support #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Enhancement Request

Notepad++(http://sourceforge.net/projects/notepad-plus/) support.  It's a
great free editor for Windows.

Original issue reported on code.google.com by lava...@gmail.com on 28 Sep 2009 at 4:04

GoogleCodeExporter commented 8 years ago
please support notepad++!!

Original comment by four...@gmail.com on 18 Feb 2010 at 1:23

GoogleCodeExporter commented 8 years ago
please support notepad++!!

Original comment by dzengdi on 2 Mar 2010 at 8:19

GoogleCodeExporter commented 8 years ago
Notepad++ support, i must have - yoda

Original comment by jrudd...@gmail.com on 4 Mar 2010 at 4:18

GoogleCodeExporter commented 8 years ago
Here is my vote for Notepad++!

Original comment by fatal...@gmail.com on 4 Mar 2010 at 11:39

GoogleCodeExporter commented 8 years ago
JavaScript support for Notepad++: http://sieukrem.habrahabr.ru/blog/86626/

Original comment by alexander.makarow on 6 Mar 2010 at 8:05

GoogleCodeExporter commented 8 years ago
Here you go: 
http://code.google.com/p/zen-coding/downloads/detail?name=Zen.Coding-
Notepad%2B%2B.v0.6.zip

Please test it and tell me how it works.

Original comment by serge....@gmail.com on 7 Mar 2010 at 6:25

GoogleCodeExporter commented 8 years ago
Sergey, thanks a lot for this!
Just tested it, working just fine.

Original comment by www.qpro...@gmail.com on 7 Mar 2010 at 6:29

GoogleCodeExporter commented 8 years ago
Great! Seems to work great. 
Thank you! :o)

Original comment by r3l4x92 on 7 Mar 2010 at 6:40

GoogleCodeExporter commented 8 years ago
Finally!! It's here!! Thank you for this!

Original comment by mau.fournier@gmail.com on 7 Mar 2010 at 6:59

GoogleCodeExporter commented 8 years ago
Thanks a lot! long time wait.... but worthy!!!

Sergy, is there a way Zen-Coding be case-sensitive...  I mean:
if you key in: 
SourceAuthors.id I expect to get <SourceAuthors class="id"></SourceAuthors>

actualy I get <sourceauthors class="id"></sourceauthors>

this is for XML tagging

thanks in advance  

Original comment by czar...@gmail.com on 8 Mar 2010 at 6:48

GoogleCodeExporter commented 8 years ago
I've added issue for preserving tag case: 
http://code.google.com/p/zen-coding/issues/detail?id=130

Original comment by serge....@gmail.com on 8 Mar 2010 at 10:33

GoogleCodeExporter commented 8 years ago
sergy superb work!

i red readme for keyboard shortcuts to activate dynamic coding. but i coludnt 
find on 
"start.js"  to define it. on sublime editor its shortcut is 
[CTRL]+[ALT]+[ENTER]. is 
there a short cut for notepad++ ?

Original comment by wallk...@gmail.com on 8 Mar 2010 at 10:49

GoogleCodeExporter commented 8 years ago
All shortcuts are defined at the very bottom of the 'NppScripting\start.js' 
file of downloaded archive

Original comment by serge....@gmail.com on 8 Mar 2010 at 10:54

GoogleCodeExporter commented 8 years ago
Thank you for this!

Original comment by bracsek....@gmail.com on 8 Mar 2010 at 11:57

GoogleCodeExporter commented 8 years ago
I've come across an issue with the script. When using non-ascii characters, the
expand abbreviation, wrap abbreviation, and remove tag scripts won't run or work
correctly if there's also content following where your cursor is.

Example:
<p>水</p>
p|
p

The | representing where the cursor currently is. Activating the expand 
abbreviation,
nothing happens. If I do this before the Japanese character in the example, it 
works
OK, just not after it. For the wrap with abbreviation, it will attempt 
something, but
ends up fubaring the output.

Example:
<p>水</p>
hello

With "hello" selected and initiating wrap, the output I get is,

Outputs:
<p>水</p>
<p>llo

    </p>

I'm assuming it happens with non-ascii characters, including the é character. 
I have
my document set to UTF-8 without BOM and the language set for HTML.

Original comment by angelw...@gmail.com on 8 Mar 2010 at 7:54

GoogleCodeExporter commented 8 years ago
@serge.che: Thank you so much for your work! I'm following issue 130 now, and I 
have
a question of my own. In my tests so far, expanding abbreviations with element
content doesn't work.

Example:
p{Hello world!}

Expected output:
<p>Hello world!</p>

Actual output:
p{Hello world!} //Does nothing

Having support for that Zen feature would be awesome, since it would allow me to
write <a href="http://www.google.com/" rel="nofollow">My favorite search 
engine</a>
as a[href="http://www.google.com/" rel="nofollow"]{My favorite search engine}

Original comment by voyagerfan5761 on 8 Mar 2010 at 9:05

GoogleCodeExporter commented 8 years ago
Hi there, First of all, many thanks for making ZenCoding fpr np++ possible!

I have a few issues here  concerning custom keyboard shortcuts.

This would be my proposition for np++ ZenCoding shortcut usage:
Expand Abbreviation: 'Ctrl+Enter'
Next Edit Point: 'Ctrl+Alt+Right'
Prev Edit Point: 'Ctrl+Alt+Left'
Toggle Comment: 'Alt+Q'

but unfortunately I didn't manage to bring 'enter','left' and 'right' to work.

Ideas, anyone?

Kind regards, mtness.

Original comment by mtness23 on 9 Mar 2010 at 9:28

GoogleCodeExporter commented 8 years ago
voyagerfan5761, I really don't like such syntax and I'm not going to implement 
it in the near future. In your case, 
it's much faster to write `a[href="http://www.google.com/" rel="nofollow"]`, 
expand it and write link label.

Zen Coding is not a new programming language. The idea to write a full page 
markup is nice, but not useable. 

Original comment by serge....@gmail.com on 9 Mar 2010 at 9:45

GoogleCodeExporter commented 8 years ago
I've found a problem with keyboard shortcuts in 
zen-coding/NppScripting/notepad++
combo. The problem is that those hotkeys are registered as global - i.e. 
working not
only when notepad++'s window has focus. It blocks shortcuts from other 
applications
and possibility to input polish national characters (for instance alt+l would 
produce
ł, but with notepad++ running in the background, it tries to match tag inside 
n++.
Probably it's a problem with NppScripting - even the name of the method,
addSystemHotKey, suggests that it's a hook to a wrong API function. As the 
plugin's
information page is in Russian, I'll drop that message here.

Original comment by leafn...@gmail.com on 11 Mar 2010 at 1:31

GoogleCodeExporter commented 8 years ago
serge.che, thanks for getting back to me. Now that I think about it, you are 
correct.
I was just (incorrectly) expecting a complete port of the Zen syntax.

leafnode, I can confirm the hotkey issue on Windows XP running Notepad++ 5.6.8 
in
portable mode. I suggest you email the developer of NppScripting (support [at]
softwarecanoe [dot] de) with a description of the issue. (I tried to track down 
an
easier contact method—a form, a Twitter account—with no success, and I 
can't register
at habrahabr.ru to comment on the announcement post.)

Original comment by voyagerfan5761 on 11 Mar 2010 at 8:28

GoogleCodeExporter commented 8 years ago
@voyagerfan5761: thanks for the hint - I've sent them an email.

Original comment by leafn...@gmail.com on 11 Mar 2010 at 8:38

GoogleCodeExporter commented 8 years ago
same problem as #65 and launching "wrap with abbreviation" it's a little laggy.

Everything else works nice, like Zen Coding a lot.

Thank you!

Original comment by harold.d...@gmail.com on 23 Mar 2010 at 4:08

GoogleCodeExporter commented 8 years ago
Re#69/#70 - I've exchanged emails with the plugin developer as voyagerfan 
suggested.
The developer responded very positively to the problem, and few days later he 
sent me
a patched version of notepad++, plugin and zen-coding for testing - it worked
perfectly. But as this patch requires modification in the core of n++ (current
version does not support dynamically adding local menu accelerators), probably 
it'll
take some time until it is incorporated into the main project.

Original comment by leafn...@gmail.com on 23 Mar 2010 at 5:30

GoogleCodeExporter commented 8 years ago
I also have the hotkey problem running windows 7 x64 with notepad++ v5.6.8

Original comment by Kas...@gmail.com on 24 Mar 2010 at 2:24

GoogleCodeExporter commented 8 years ago
I have a problem with hungarian keyboard after install this plugin Altgr + m 
shorcut
dont work in other programs while the notepad++ running, other program is 
active and
press Altgr+m (shortcut for < character on hungarian keyboard) and result is in
notepad in inactive window. 

Original comment by bracsek....@gmail.com on 24 Mar 2010 at 9:39

GoogleCodeExporter commented 8 years ago
I would like to be able to assign the hotkeys of my choosing, but currently 
their is
limited support for this... any plans for more flexible hot keys?

Original comment by jonasfl...@gmail.com on 5 Apr 2010 at 4:26

GoogleCodeExporter commented 8 years ago
Hello, first of all thanks a lot for plugin to NP++.
angelwatt describes a problem with non-ascii characters. I want to add that this
issue also takes place when there are any russian characters before the 
statement to
expand. But only if file encoding is not ANSI. In UTF-8 particularly.
--
<h3></h3>
span
--
become
--
<h3></h3>
<span></span>
--

but when add some characters
--
<h3>Заголовок</h3>
span
--
if does nothing or some unpredictable result.

Original comment by radis...@gmail.com on 8 Apr 2010 at 2:43

GoogleCodeExporter commented 8 years ago
Plugin is ready, bug with multibyte characters in UTF encoding is fixed.
Closing issue

Original comment by serge....@gmail.com on 26 Apr 2010 at 4:19

GoogleCodeExporter commented 8 years ago
@73 Hi leafnode, any idea where to find this patched version of np++?

Kind regards, mtness.

Original comment by mtness23 on 29 Apr 2010 at 3:43

GoogleCodeExporter commented 8 years ago
I'm extremely curious as to where I can find this plugin. Any help highly 
appreciated.

Original comment by Jon...@gmail.com on 2 May 2010 at 12:29

GoogleCodeExporter commented 8 years ago
(In reply to comment 80):
See comment 56 for a link, or just click: 
http://code.google.com/p/zen-coding/downloads/

Original comment by voyagerfan5761 on 2 May 2010 at 5:45

GoogleCodeExporter commented 8 years ago
@79 Hi there mtness. You can download it from my dropbox:
http://dl.dropbox.com/u/177181/npp/Patched.zip

Original comment by leafn...@gmail.com on 6 May 2010 at 5:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
many thanks leafnode! But it seems to me that the zen shortcuts do not work 
anymore
at all - I'll keep trying.

Original comment by mtness23 on 6 May 2010 at 5:25

GoogleCodeExporter commented 8 years ago
is it possible to add abbreviations as shown in the video (in np++)?

Original comment by supan...@gmail.com on 12 May 2010 at 11:41

GoogleCodeExporter commented 8 years ago
@82 Thank you leafnode, it works on Win 7 :)

Original comment by kum...@gmail.com on 21 May 2010 at 11:49

GoogleCodeExporter commented 8 years ago
Problem with Altgr+M with hungarian keyboard i press altgr+m in notepad++ 
appear a <
but i press altgr+m in other programs(browser or messenger) appear "" 
-notthing, but
in inactive Notepad collapse multi line in one. LoL.
Problem appear after i installed zen coding plugin in notepad++.  

Original comment by bracsek....@gmail.com on 21 May 2010 at 1:43

GoogleCodeExporter commented 8 years ago
(Re: Comment 85) supanick, I have to say yes. It's not as easy as what's shown 
in the
video, but I think if you open up your '/plugins/NppScripting/includes/Zen 
Coding.js'
file and have a look around, you'll be able to figure out how to do so. ;-)

Original comment by voyagerfan5761 on 21 May 2010 at 6:57

GoogleCodeExporter commented 8 years ago
@82 expand abbreviation doesn't work with the patched version, polish 
characters are
ok but ctrl+e makes , any one have this problem?

Original comment by kum...@gmail.com on 31 May 2010 at 4:34

GoogleCodeExporter commented 8 years ago
Issue 189 has been merged into this issue.

Original comment by serge....@gmail.com on 1 Jun 2010 at 12:26

GoogleCodeExporter commented 8 years ago
Lots of people has the same issues with N++ so moving this issue into main list

Original comment by serge....@gmail.com on 7 Jun 2010 at 6:54

GoogleCodeExporter commented 8 years ago
I just tried the proposed patch (comment #82) here on Windows XP SP3.

While it does solve one part of the problem, preventing Zen-Coding to activate 
when
the N++ window is not in focus, it still completely prevents any similar 
shortcut to
work on other applications while N++ is running (e.g. in Photoshop Ctrl+E (merge
layers) doesn't work any more; same goes for any shortcut that uses the same 
keys as
Zen-coding's, in any application).

Original comment by vincent....@gmail.com on 7 Jun 2010 at 8:46

GoogleCodeExporter commented 8 years ago
I noticed a issue with "Wrap with abbreviation" (Ctrl+Shift+A) function.

if the following text are selected and wrap with abbreviation using the 
follwoing "p*3"

Home
Contact
Services

then instead of each line "home" , "Contact", "Services" wraped around with 
<p></p>
the entire 3 lines gets wrapped around with "p" tag three times?

expected result:
<p>Home</p>
<p>Contact</p>
<p>Services</p>

instead, getting the follwing:

<p>Home
Contact
Services</p>

<p>Home
Contact
Services</p>

<p>Home
Contact
Services</p>

System:
WinXP SP3
Notepad++ Portable 5.7(UNICODE)
Zen-Coding Plugin 0.6.1

Original comment by iraki...@gmail.com on 16 Aug 2010 at 6:59

GoogleCodeExporter commented 8 years ago
The correct syntax for wrapping multiple lines is "p*" 
note that there's no number after asterisk. With this syntax you marks element 
as a "repeating element" telling ZC that this one should be repeated as much as 
lines you have

Original comment by serge....@gmail.com on 16 Aug 2010 at 8:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm having issues with the wrap with abbr
I'm using a portable version, could that be the problem?

Original comment by sweeti...@gmail.com on 27 Aug 2010 at 10:49

Attachments:

GoogleCodeExporter commented 8 years ago
I actually figured out the problem, I did not have internet explorer installed 
on my system, Somebody should definitely make a note that the wrap with abbr 
for the Notepad++ version needs to have this installed

Original comment by sweeti...@gmail.com on 31 Aug 2010 at 3:35

GoogleCodeExporter commented 8 years ago
I've just created a new Notepad++ Zen Coding plugin, using the Python Script 
plugin.  As the actual menus are handled by a native C++ plugin, this should 
hopefully solve some of the issues with the javascript version.  The "Zen" 
element is the pure Python though - no modifications, just a zen_editor 
implementation.

Annoucement is here:
http://sourceforge.net/projects/notepad-plus/forums/forum/482781/topic/3837779

Cheers,

Dave.

Original comment by davebrot...@gmail.com on 4 Sep 2010 at 12:43

GoogleCodeExporter commented 8 years ago
I like Notepad++ and Zen Coding.

But I found a question about it. When I open notepad++ with zen coding plugin, 
and eclipse. then eclipse's key map ctrl + e won't available, zend studio etc.

Could you resolved it? Thanks.

Original comment by yee...@gmail.com on 14 Sep 2010 at 9:31

GoogleCodeExporter commented 8 years ago
@Comment 99:

I can confirm that the Ctrl+E shortcut passes through the active application to 
Notepad++ using the new Python Script version of Zen Coding. I was hoping that 
problem from the JavaScript version would be fixed, but I guess it's still 
haunting us.

Original comment by voyagerfan5761 on 14 Sep 2010 at 10:51