It is currently Tue Jan 19, 2021 7:15 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 3:36 am 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1869
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. :)

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 9:25 am 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Looks great, thanks for sharing!

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 12:44 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 3698
Location: Italy
Nice idea, I'll try it soon !

Oh, and there is the source too... thank you for sharing it :)

_________________
[ My little PureBasic review ]


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 6:55 pm 
Offline
User
User
User avatar

Joined: Wed Jan 16, 2008 11:28 am
Posts: 84
Location: china
very good , thanks ~~~!! :D

_________________
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 7:05 pm 
Offline
PureBasic Bullfrog
PureBasic Bullfrog
User avatar

Joined: Wed Jul 06, 2005 5:42 am
Posts: 8149
Location: Fort Nelson, BC, Canada
Please excuse my obtuse reply but is this for posting code on a forum, is that the purpose?

_________________
BERISHEET


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 7:16 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Wed Feb 13, 2013 9:41 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1807
Location: Uttoxeter, UK
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Thu Feb 14, 2013 4:20 am 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1869
@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.

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Thu Feb 14, 2013 4:41 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 2077
Location: USA
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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Thu Feb 14, 2013 7:34 am 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1807
Location: Uttoxeter, UK
Hi Kenmo,

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

Thanks very much. :D

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Thu Feb 14, 2013 2:59 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
@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)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Thu Feb 14, 2013 3:04 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 1021
Location: 'stralia!
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureHTML (a PB-to-HTML IDE tool)
PostPosted: Sat Feb 16, 2013 12:00 am 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1869
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 :?

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye