Preview Plugin
-
I knew there was a reason for using it - thx for clarifying :-)
Just for clarification, you don’t have to refresh a browser if you are using
some addons like duplicate tab closer and have some mechanism which would call
run in browser when saving the document. At least this works for me with firefox. -
testing complete:
i’ve cloned a windows 10 vm with your current setup (resistance is futile 🦹♂️) and i can confirm your experience … ahhh, such a nice wording … experience … makes it almost sound as if it is something to enjoy … i think i’ll watch another bob ross episode, while i’m typing this 😉
my test setup:
Notepad++ v7.6.3 (64-bit) Build time : Jan 27 2019 - 17:16:47 Path : C:\usr\local\apps\notepad++\notepad++.exe Admin mode : OFF Local Conf mode : ON OS : Windows 10 (64-bit) Plugins : ComparePlugin.dll DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExec.dll NppFTP.dll PreviewHTML.dll PythonScript.dll XMLTools.dll
(ps: no joke)
PreviewHTML will crash exit notepad++ on windows 10 pro x64, regardless of it’s settings and regardless of any other installed or removed plugins.
on windows 7 pro x64 it works fine, except the ? or about menu.
-
From what I remembered, the PreviewHTML plugin is slightly more live than “on-save”; I think it can update every 15s or something like that. And definitely if you hit refresh. (I hit Ctrl+S – save early, save often! – often enough that I usually don’t notice a difference in timing).
yes, you are correct, i’m sorry about that. i was only testing the x64 build from andre.
i’ve just tested the original PreviewHTML x86 version, and this does not require saving at all.
the x86 version gives me a live preview, after a 2 second timeout, as soon as i stop typing.it seems that the x64 test build does not receive or handle any notepad++ events. not even a save event.
In fact, that filter-to-HTML-with-on-save-preview was what prompted me to write pyscFilteredViewer, because while I don’t edit much HTML, I am frequently playing with the POD in my Perl, and having the nearly-live preview is nice.
it will probably consume much time and energy, but in this case i’m glad that PreviewHTML does not work properly on x64.
otherwise pyscfr wouldn’t have been born … like some real babies, which would probably not exist, if their parent’s tv would have worked that specific night 😉 -
like some real babies, which would probably not exist, if their parent’s tv would have worked that specific night
are you speaking from WONDERFUL EXPERIENCE, Bob? ;-D
-
loooool.
i like the way you are thinking, closing as much circles as possible.
i bet if someone would give you a straight, completely unbendable rod of steel, you will bend the space around it, just to make it a harmonic circle 😄👍 -
-
Hi all, author of the Preview HTML plugin here.
I finally managed to get time, energy and motivation at the same time. The link to the 64-bits plugin is available on its home page.
I’ve also updated the installation instructions, where there was a mismatch between Notepad++'s changed plugins folder, and the structure of the zip. It should now suffice to unzip the file in the plugins folder, unless you’ve got an older version of Notepad++.
Apologies for not fixing this sooner, and kudos to @andrecool-68 for managing to build it from source!
I’ve tested it on my machine, and the toolbar button is present and functional. Let me know if you run into trouble with it.
Either in this thread, or by creating a ticket or a forum post over on the plugin’s site. Of course, should you prefer creating a new thread on this forum, please notify me via an @ mention. I won’t be monitoring this forum otherwise. -
@vor0nwe
The plugin works without errors!
Thanks for updating the source code! -
a very warm welcome to the notepad++ community, @vor0nwe
many thanks for releasing
PreviewHTML
for x64, and especially for taking the time to answer this specific thread in person.
big kudos, both is very much appreciated. 👍a little note to your installation instructions:
The plugins directory can be located at %AppData%\Notepad++\plugins, or just below the directory containing notepad++.exe, e.g. C:\Program Files\Notepad++\plugins.
the versions 7.6.3, 7.6.4 and above have their plugins solely at
[Notepad++ Program Folder]\plugins
.
for installed versions, your plugin target folder would be e.g.%ProgramFiles%\Notepad++\plugins\PreviewHTML
, or%ProgramFiles(x86)%\Notepad++\plugins\PreviewHTML
.
with additional, user specific files, likeFilters.ini
andSettings.ini
at%AppData%\Notepad++\plugins\config\PreviewHTML
, but for guides purpose it is better not mention them, as the location varies, depending on the notepad++ installation type, and the files will be created automatically anyways, when accessing the PreviewHTML edit settings/filter menu.
for portable versions the plugin dll location would benpp.7.6.4.bin.x64\plugins\PreviewHTML
.if you would like to extend your installation guide, to bridge the time between your submission to the plugins admin list, and the implementation into plugins admin:
the easiest and simplified guide to install PreviewHTML, on versions above 7.5.9, would be something like:
-
If you are using a Notepad++ version 7.6.0. or higher, please make sure you update to notepad 7.6.4. or above.
-
Open Notepad++ and go to the menu:
Plugins > Open Plugins Folder...
to open your specific plugins folder in Windows Explorer. -
Create a folder called
PreviewHTML
inside your plugins folder. -
Copy
PreviewHTML.dll
to the createdPreviewHTML
folder. -
Restart Notepad++.
note: as notepad++ versions 7.6.4 and above have the
Plugins > Open Plugins Folder...
, it will be much easier for users to install custom plugins, without having to know, or search for their specific location, which varies depending on the notepad++ versions.if you like to extend your installation guide, please feel free to use and/or adapt any parts of the text above.
if you wish, you can also link notepad++ specific installation, or other topics regarding your plugin, to the notepad++ community forum’s general discussion page, and we (definitively me), would help supporting users who are stuck installing your plugin.
ps: if you like, feel absolutely free, to post a release announcement for PreviewHTML v1.3.2.0, at the plugin development page, to attract a wider audience and focus or link supportive questions there.
best regards
-
-
@andrecool-68 You’re welcome!
How did you manage to translate it in русский? Just got the updated source, and adjusted the text in there?
-
@Meta-Chuh Thanks for the welcome! 👍🏻 According to my profile, I’d already signed up a few years ago… :-)
Also thanks for your update on the current state of plugin directories. I haven’t really been following the developments, nor do I upgrade to each new version of Notepad++; I’ve had too many unpleasant surprises over the course of the years, so when it works, I now tend to leave it alone, and only upgrade when I really want/need some new functionality that’s only available in later versions. That’s why I hadn’t seen the “Open Plugins Folder” yet; that’s a definite improvement for installing plugins not in the list…
I will update the installation documentation like you suggest, including a referral to the general discussion page.
As for an announcement on the forum: I looked, but couldn’t really figure out where to post version updates for a plugin. If the plugin development forum is the place for those, I’ll put one up over there.
-
@vor0nwe
Translate a few lines in the source code there is no problem))
The most important thing that the original project was going without errors! -
Glad I decided to log in on a Saturday.
Thanks for getting that released, @vor0nwe. Much appreciated.
It means I’ll probably finally get around to upgrading to 64-bit at home.