Entry
TSE: Language: Computer: Compile: HTML: How to run HTML from TSE?
Oct 4th, 2003 14:11
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2002 - 09:49 pm -------------------
TSE: Language: Computer: Compile: HTML: How to run HTML from TSE?
---
Steps: Overview:
1. create a batchfile 'comHTM.bat' (or 'comHTML.bat'), containing this
text (adapt it to your system) and store this batchfile in your TSE
directory (e.g. save to c:\mytsedirectory\comHTM.bat)
start %3
@REM "c:\program files\internet explorer\iexplore.exe" %3
@REM "c:\program files\opera7\opera.exe" %3
@REM "c:\program files\mozilla.org\mozilla\mozilla.exe" %3
@REM "c:\program files\netscape\netscape\netscp.exe" %3
@exit
2. Adapt the compiler information
(in TSE, after loading any file, press <SHIFT><F9>
then 'D' for debug compiler setup
then <ALT><C> to copy one of the compiler settings present
then change the fields:
'Extension' to: .htm
'Description' to: HTML
'Command' to: c:\mytsedirectory\comHTM.bat &name& &ext& &fn& >
&output&
make sure this information is permanently stored in the compiler
information (via <ENTER>, then <ESCAPE>)
(Then repeat this also for the extension .html)
---
Note: if you see an empty page after running, change the line above
to:
'Command' to: c:\mytsedirectory\comHTM.bat &name& &ext& &fn&
3. If you now load a .HTML file, fill in some program code for HTML,
for example type or copy this text in a file 'mytest.htm'
<HTML>
<BODY>
Hello World
</BODY>
</HTML>
save that text in your TSE directory,
then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run
that
batch file, which starts your browser with your file.
---
Note:
To run your HTML file simultaneously in all different browsers on your
computer
(e.g. to test your HTML file, say for web development, when you want
to see
how it looks like, one after another, in all different browsers, like
-Internet Explorer,
-Mozilla,
-Netscape,
-Opera,
...)
edit your comHTML.bat file, and change the line:
start %3
in:
(use preferably the full path (check this path, and or install that
browsers, on your own computer))
For example:
"c:\program files\internet explorer\iexplore.exe" %3
"c:\program files\mozilla.org\mozilla\mozilla.exe" %3
"c:\program files\netscape\netscape\netscp.exe" %3
"c:\program files\opera7\opera.exe" %3
---
---
Note:
This has been tested in TSE v2.5 and v4.0 and worked OK.
---
---
Internet: see also:
Computer: Wordprocessor: TSE: Language: Computer: Compile: Run:
Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895
----------------------------------------------------------------------