TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `rick{at}fjbradley.com`
date: 2002-12-11 14:17:38
subject: [TSEPro] Re: CSS syntax highlighting, HTML helper macros

From: "rick{at}fjbradley.com" 
@Date: Tue, 10 Dec 2002 22:47:38 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



On 10 Dec 2002 at 20:43, James C. Sewell wrote:
> Here's another way to do it, for whatever it's worth:
> 
> proc mPreviewInBrowser()
>     saveas("c:\windows\temp\view.html",_OVERWRITE_|_DONT_PROMPT_)
>     dos ("iexplore.exe c:\windows\temp\view.html")
> end
> 
>     mPreviewInBrowser()

James' macro with a couple of checks and viewing the file in the 
regular directory so that paths are maintained.

proc mPreviewInBrowser()
	string strThisFile[100] = "", strCheckExt[5] = ""
	strCheckExt = SplitPath(CurrFilename(),_EXT_)
	if SubStr(strCheckExt,2,3) == "htm"
		strThisFile = CurrFilename()
		saveas(strThisFile,_OVERWRITE_|_DONT_PROMPT_)
		dos ("e:\Utilit~1\Opera7\opera.exe " + strThisFile)
	endif
end

Regards
F.J. (Rick) Bradley
F.J. Bradley & Associates
http://www.fjbradley.com/
tel 519 354 4604       fax 519 354 6717
265 Oxley Dr. Chatham, ON, Canada N7L 4S8

If God made us in his image we have certainly returned the 
compliment.
--Voltaire


--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.