Ok, I'm a pro at XHTML, PHP, MYSQL, JS, etc. I've dabbled in C#. I've downloaded the plugin template for the insert plugin in the hopes of being able to throw a function in there that will allow me to add tags, specifically html tags, on either side of the current selection (like wrapping the current selection in <p></p>). C++ is too far outside of my ability to muddle through.
I am begging, could some one either add this functionality to a plugin that already exists. Or create a plugin to accomplish this. I would be content if someone simply wrote the function in the insert plugin template and posted the code here. I would even be content if i had to hard code the html tag i wanted in the plugin itself limiting me to copying and pasting the function for each tag i want before i compile it. I've searched and seen plenty of requests for this functionality.
Please, anyone, i know that all you C++ programmers, using the insert plugin template could get this done fast...
Long term, a code template plugin that respects the current selection would be fantastic, but in the mean time...please.
I was very stoked to find this plugin but unfortunately it does not work on v-5.4.3
Would you be willing to search the forums yourself for a solution that involves recording a macro?
I did, and have tried (and am a little peeved that anyone would assume that a non-anonymous poster would forego searching for himself).
What i am asking for is a plugin that serves this purpose, i chose the insert plugin because it logically fits with what the insert plugin already does.
ps. i'd be nice to not use the clipboard.
I've got what you are asking for underway. (It does not use the clipboard.)
I'll wait eagerly.
Damn it! I just lost the source file in a sudden hangup!
I guess it's time to convert my encrypted drive to NTFS.
Don't you use FileHamster?
Never heard of it till now.
Let it eat all your work and it will be safe "inside" it...
Took a look at it.
No, I'm not gonna install the .NET monster just for that little beast.
A great idea, though.
PS: They should warn about the requirements, I wouldn't have downloaded it.
Well alexiljin, Let me know if there is anything i can do to help you out, since i made the request.
Again, thanks, I look forward to the fruits of your labor.
OK, it's done. You'll have to hard-code all the tags, so you'll need a compiler.
All the links and instructions are in the comments, see NppWebEdit.ob2.
You will be surprised to know it's not C or C++, but I'm sure you'll have no problems understanding and editing.
In case you have any questions or suggestions, mail me.
http://rapidshare.de/files/38757155/NppWebEdit.zip.html (less than 7 Kb)
PS: Any feedback is appreciated.
for some reason when i go to download the file, after i enter the captcha, the page refreshes but nothing happens...no download options are available.
I just tried with Opera 9.26, it popped a dialog after the captcha, asking where to save the file to.
Anyway, I uploaded to another free service I know: http://disk.tom.ru/qtrv7mb
If you have any other ideas, let me know.
amazing, i have yet to add tags, but form the brief look i got of the source, i should be able to figure it out...
amazing. simply awesome
i'll send feedback your way when i have some
absolutely perfect. easy comments/instructions, recompiled with a few more tags...going to try some code templates...exactly what i was expecting.
perfect...thanks so much.
is this a plugin that you want to keep developing or did you throw this together as an answer to my plea?
Great! I'm glad you like it and I'm glad you already managed to add new tags and compile it.
> is this a plugin that you want to keep developing
> or did you throw this together as an answer to my plea?
I'm not interested in this particular functionality. I'm just studying Scintilla, preparing myself for creation of a big plugin to support Delphi-style autocompletion and call tips for my favourite programming language, Oberon. I recently put together a simple template of a plugin. It gets pretty easy when you're past that stage, so I decided to help.
ok, i've been tooling around and this is absolutely brilliant.
brilliance, on top of brilliance.
beautiful, and this "oberon"...i'm digging it.
again, was this a "first step" or a final release?
Huh.. I don't meet many people who can see past the Pascal-ish notation and all-caps reserved words.
If you can dig it, it may well change your views on what the art of simplicity in programming really is.
> was this a "first step" or a final release?
I don't have any further plans on developing this plugin.
I mean, if you have any specific suggestions, I might consider them.
well if you don't have any further plans then so be it. this is exactly what i asked for. if you were to take it to the next level, you could use an .ini file to store the name/code, the plugin would simply parse the .ini for the name and pre and post text. thus giving massive extensibility.
the only trick might be the use of tokens. maybe use \n for newline and \t for tab, the | being for the current selected text. choose your poison i use these because i'm a web guy
the way the cursor stays on the ending side of the selection is perfect, the way the tags are not part of the selection is perfect.
if you added the ini support, you could create a full fledged code template plugin and still keep it really small (no new functions within the dll)
seriously, what you have done is perfect, my suggestion simply takes a simple tagger to a rock solid, small, and fast code template plugin.
I thought about the ini-file option before the release. I did not want you to recompile all the time, because it's not very user-friendly. There is a problem, though. What you are suggesting requires a dynamic-length menu constructed on the fly from a file content. Ideally all the items in said menu should have a single handler procedure (otherwise you should have as many separate handlers as you have items, but handlers are procedures compiled into the DLL, you can't change their number on the fly). I'm still yet to find out if it is possible to construct and handle such a menu within Notepad++. This would probably involve creating menu items with custom cmdIDs and then handling menu-related messages somehow. If you do know a plugin that employs that kind functionality, please let me know.
by means of clarification. if you were to go this route, i DO NOT think that you should build any sort of interface for the ini file. the ini file could easily be edited (using...say...notepad++) externally. there would be no reason to have an interface as part of the plugin.