Andreas:
--------------------------------------------------------------------------------
... I'm editing my css-file in pspad and like to see a quick preview of a
predefined html-file styled with this css-file. ...
--------------------------------------------------------------------------------
Hi,
I think a kind of cheap workaround should be doable via PSPad scripting; you may
try something like the following lines (save as a js-file in the folder:
[PSPad]\Script\JScript\
Adapt the HTMLpath variable and maybe the shortcut in the Init function;
then run the menu: Scripts :: Recompile and after it you should be able to use
it via the scripts menu or the shortcut (asuming the enabled scripting in the
PSPad settings)
Some problems I saw with this quick script - sometimes it must be called twice,
as the first run the sample file is only opened (or focussed), but not previewed
(would somebody maybe know, why?, or even the solution of it?)
And second, maybe a bit more annoing, the html sample is added to the open files
and gets focus.
Greetings,
vbr
//==============source============
var module_name = "html_prev_js";
var module_ver = "0.0.1";
function prevHtml(){
if (editorsCount()<1){return;}
var HTMLpath = "C:\\install\\sampleHTML.html"
var supplEditor = newEditor();
supplEditor.openFile(HTMLpath);
runPSPadAction("aHTMLPrev");
}
function Init(){
addMenuItem("preview HTML", "", "prevHtml","Ctrl+Shift+H");
}
--
<http://forum.pspad.com/read.php?2,46216,46217>
PSPad freeware editor http://www.pspad.com