PureHTML (a PB-to-HTML IDE tool)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

PureHTML (a PB-to-HTML IDE tool)

Post by kenmo »

Hello!

I've got a nice new IDE tool to share... I know it's not very original (yet another PB-to-HTML converter) but hopefully this one has the easiest-to-use GUI and the most features.

Image

Features:
- quickly convert a single file (or a folder of them) into nicely formatted HTML pages
- configure 14 code styles, including optional line numbers style
- automatically turn IncludeFile, IncludeBinary, etc. into HTML links
- (when run from IDE) your syntax styles, current source path, and DLL path should be automatically detected
- colors can be copy/pasted (via right-click menu on those colored CanvasGadgets)
- import/export settings to "prefs" files which are (mostly) compatible with the IDE
- source is included!

Important Notes:
- I've only tested it on Windows, but feel free to get it working on Mac/Linux
- it requires the Syntax Highlighting library included in your PB installation (SyntaxHilighting.dll on Windows)

Example output: here

Download: here

I hope you find it useful, it's been sitting around for a while and I finally got around to putting it online. :)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Re: PureHTML (a PB-to-HTML IDE tool)

Post by Inf0Byt3 »

Looks great, thanks for sharing!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureHTML (a PB-to-HTML IDE tool)

Post by luis »

Nice idea, I'll try it soon !

Oh, and there is the source too... thank you for sharing it :)
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: PureHTML (a PB-to-HTML IDE tool)

Post by loadstone »

very good , thanks ~~~!! :D
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureHTML (a PB-to-HTML IDE tool)

Post by netmaestro »

Please excuse my obtuse reply but is this for posting code on a forum, is that the purpose?
BERESHEIT
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Re: PureHTML (a PB-to-HTML IDE tool)

Post by Inf0Byt3 »

Nope, this outputs HTML for use on a website (as a stand-alone page or embedding in an existing page as a frame). There was another tool for generating BBCode (for the forum) but I cannot find the link :/.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PureHTML (a PB-to-HTML IDE tool)

Post by davido »

Hi kenmo,

Output looks great, unfortunately it does not accept the syntaxhighlighting.dll on my system.
Is that because it is 64bit windows 7?
DE AA EB
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: PureHTML (a PB-to-HTML IDE tool)

Post by kenmo »

@netmaestro - Infobyte is right, it currently outputs HTML pages that you have to upload somewhere (or keep for personal use). You can't directly post them in the forum. Maybe I will look into an option to generate forum-friendly BBCode formatting instead?

@davido - The included .exe was compiled with PB x86... maybe it can't load 64-bit DLLs. The source is included so you should be able to re-compile it as 64-bit and try again.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureHTML (a PB-to-HTML IDE tool)

Post by J. Baker »

Nice but if you wanted to copy and paste the code, it also copies the line numbers from the html. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PureHTML (a PB-to-HTML IDE tool)

Post by davido »

Hi Kenmo,

Hmm... doesn't it sound so simple when told the answer! :oops:

Thanks very much. :D
DE AA EB
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Re: PureHTML (a PB-to-HTML IDE tool)

Post by Inf0Byt3 »

@kenmo: If you have the time, it would be great to have an option for BBCode generation.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: PureHTML (a PB-to-HTML IDE tool)

Post by Shield »

Nice tool! :)
But you should change the HTML output a little. It would be wise to use a formatting that allows
selecting and copying the code without line numbers. That's not easily possible at the moment.

(Also check the errors in your XHTML. :P ).


I think the user STARGATE made a tool for BBCode formatting.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: PureHTML (a PB-to-HTML IDE tool)

Post by kenmo »

D'oh! I can't believe I didn't think about copying code without copying line numbers... hmm.

Are there XHTML errors? When I started writing it I was ensuring it was Validated HTML, but that was months ago so maybe I changed something.

I will look into BBCode but I make no guarantees... I am pretty busy lately :?
Post Reply