|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Can anybody advise any easy way to convert pov files to html format?
Thanks in advance,
Gleb
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:
> Can anybody advise any easy way to convert pov files to html format?
With a text editor you can simply do the following (which should be easy with
any serious text editor) ...
Replace all '<' with <
Replace all '>' with >
The add at the top of the file:
<HTML>
<HEAD>
<TITLE>POV-Ray Scene</TITLE>
</HEAD>
<BODY>
<PRE>
And at the bottom of the file add:
</PRE>
</BODY>
</HTML>
This is the fastest method. Alternatives are to use any HTML editor. Such an
editor should be able to automate the task because .pov files are nothing more
but plain text files...
Thorsten
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3c8fb46e$1@news.povray.org>, "Gleb" <gk1### [at] sotonacuk>
wrote:
> Can anybody advise any easy way to convert pov files to html format?
I've seen a lot of "can I convert *.pov to ..." questions, but I've
never seen this one...
Assuming you really meant HTML and not VRML, what are you looking for?
Just code markup, or syntax styling as well? I usually do this stuff by
hand. I don't know of any existing tools for this, but I imagine it
would be very easy as a Perl script. Maybe I should learn Perl and write
one... ;-)
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3c8fc4f5@news.povray.org...
> The add at the top of the file:
>
> <HTML>
> <HEAD>
> <TITLE>POV-Ray Scene</TITLE>
> </HEAD>
> <BODY>
> <PRE>
> </PRE>
> </BODY>
> </HTML>
Isn't there a bunch of extra bloody crap to get HTML 2.0 compliant?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3c8fc4f5@news.povray.org...
> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:
>
> > Can anybody advise any easy way to convert pov files to html format?
>
> With a text editor you can simply do the following (which should be easy
with
> any serious text editor) ...
>
> Replace all '<' with <
> Replace all '>' with >
>
> The add at the top of the file:
>
> <HTML>
> <HEAD>
> <TITLE>POV-Ray Scene</TITLE>
> </HEAD>
> <BODY>
> <PRE>
:)
Sorry, question was not clear enough. I thought it's evident,
that under html format of pov file I mean full-coloured text:
keywords, numbers, comments, strings etc.
I wonder, because the POV editor (at least win32 version)
has very attractive text colouring, and it's a pity that examples in docs,
and some other on-line tutorials don't use it.
So is there any such converters available?
Regards,
Gleb
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3c8fb46e$1@news.povray.org Gleb wrote:
> Can anybody advise any easy way to convert pov files to html format?
>
The vim editor has an option to save, any file, as html. vim 6 comes with
syntax clouration for POV-Ray 3.5.
Ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3c8fc801$1@news.povray.org>, "Greg M. Johnson" <gregj:-
)565### [at] aolcom> says...
> Isn't there a bunch of extra bloody crap to get HTML 2.0 compliant?
Yes. Add:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 2.0//EN">
Lutz-Peter
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3c8fca52$1@news.povray.org>, Gleb wrote:
>
> "Thorsten Froehlich" <tho### [at] trfde> wrote in message
> news:3c8fc4f5@news.povray.org...
>> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:
>
> So is there any such converters available?
>
Never heard of such a converter, but it shouldn't be too hard to code (that's
juste recognizing some keywords). I'll try to make it in perl as soon as I'll
get a few free time....
-- Bruce
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] sotonacuk> wrote:
>Can anybody advise any easy way to convert pov files to html format?
For common programming languages, I'd use SciTE (www.scintilla.org).
Unfortunately, there's no lexer for POV. I suppose Emacs can do this
(they say it can do anything) so if you're nice, Warp may come up with
something :)
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] sotonacuk> wrote:
>Can anybody advise any easy way to convert pov files to html format?
Forgot to say the most important. Vim can convert anything it reads
(and it can ready virtually anything :) ) into HTML. The only thing I
don't like is that it uses FONT tags and not CSS, but I guess you
could always grep that away.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |