You are here: PSPad forum > English discussion forum > better way to use internal html preview with external stylesheet

better way to use internal html preview with external stylesheet

#1 better way to use internal html preview with external stylesheet

Posted by: jd | Date: 2010-12-19 06:49 | IP: IP Logged

The internal browser (HTML Page Preview) works nicely when the stylesheet is embedded in the HTML page. I can edit the stylesheet, press F10, and see the changes.

However, when using an external stylesheet, it isn't as simple. After updating the external stylesheet, I need to save the file, switch back to the html edit window, and then press F10.

I wonder if it would be possible for PSPad to provide special treatment for F10 when editing a stylesheet. If the preview window is displayed, the user is editing a stylesheet, and F10 is pressed, PSPad could refresh the preview window with the previously loaded html file.

The user would still need to first save the stylesheet, but at least it would save the "context switch".

Or can someone come up with something better?

Thanks...

-- jeff

Options: Reply | Quote | Up ^


#2 Re: better way to use internal html preview with external stylesheet

Posted by: pspad | Date: 2010-12-19 08:26 | IP: IP Logged

You are web developer. You know, that in your HTML files is link to CSS file. If you don't save your CSS, you will not see the result.
PSpad wont parse and modify your html files and change linked CSS to some temporary.

Options: Reply | Quote | Up ^


#3 Re: better way to use internal html preview with external stylesheet

Posted by: pspad | Date: 2010-12-19 08:30 | IP: IP Logged

I am sorry for previous answer.
Try this:
use project
mark some of your file as main (menu Window or project context menu)

Then PSPad should show you main file instead one you editing

Options: Reply | Quote | Up ^


#4 Re: better way to use internal html preview with external stylesheet

Posted by: jd | Date: 2010-12-19 19:53 | IP: IP Logged

pspad:
Try this:
use project
mark some of your file as main (menu Window or project context menu)

Then PSPad should show you main file instead one you editing

That didn't have any effect, perhaps I misunderstood. Here's what I tried:

- Create project with html files and one css file
- Set one html file as Main
- Edit html file to use the external css file (and save it)
- Change the css file, save it, press F10

After this, I do not see the changes reflected in the preview window. Even if I set focus to the preview window, I don't see the changes.

Options: Reply | Quote | Up ^


#5 Re: better way to use internal html preview with external stylesheet

Posted by: clolo | Date: 2013-10-29 13:36 | IP: IP Logged

i actually need a BIG help on this...where do i find the stylesheet? im suppose to design a website and completely lost on how to do the .css. Please help!
Thanks

Options: Reply | Quote | Up ^


#6 Re: better way to use internal html preview with external stylesheet

Posted by: pspad | Date: 2013-10-29 14:22 | IP: IP Logged

I am sorry, but this forum is related to PSPad editor support, not how to create Web poages.
Try to use any specialized forum related to web page writing.

Options: Reply | Quote | Up ^


#7 Re: better way to use internal html preview with external stylesheet

Posted by: myf | Date: 2013-10-30 09:19 | IP: IP Logged

NB: there is "File > Save all" action which you could use before preview.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR