Restored from previous forum. Originally posted by tinman.
I've written a small addon tool for saving your PB sources as HTML using CSS to provide the syntax highlighting. I posted it to the resources site earlier, but if anyone desparately wants a copy they can mail me.
Thanks go to Danilo and Beriko (although I ended up not using the RTF stuff as it did not fit with what I was trying to achieve .
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Addon: pb2html
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Well I hope you find it useful, if it does not do exactly what you want then I hope it might give you an idea of one way to get it working.Originally posted by freak
Just today I started to do exactly the same tool
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
Heh, here's something which makes it look a bit like the PureBasic reference manual:
Edit: forgot to say, if you have bold turned on (such as with the keywords) then your browser may make the characters wider than a normal width one, so any kind of alignment you have in your sources may not work.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Bah, no, read the CSS2 specification ;pOriginally posted by plouf
can anyone post a default CSS for (us) who do not have any idea about webcoding ?
Heh, here's something which makes it look a bit like the PureBasic reference manual:
Code: Select all
PRE.code {
border: solid black;
border-width: thin;
background-color: #FFFFDF;
white-space: pre;
}
SPAN.keyword {
font-weight: bold;
color: #006666;
}
SPAN.comment {
color: #006666;
}
SPAN.const {
color: black;
}
SPAN.string {
color: black;
}
SPAN.command {
color: black;
}
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)