Help File in HTML?

Just starting out? Need help? Post your questions and find answers here.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Help File in HTML?

Post by c4s »

I'm not sure where to put this question. So I'll just leave it here:

Where exactly is the help in plain HTML located locally? Is it installed somewhere? If not, this is a feature request because I would really like to have it. (Even putting a simple zip file into the install/help directory would be enough I guess.)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Re: Help File in HTML?

Post by helpy »

PureBasic Help is delivered in CHM format (Compiled HTML Help)
==> https://de.wikipedia.org/wiki/CHM_(Dateiformat)

You could unpack the CHM with 7zip.
Last edited by helpy on Fri Jan 27, 2017 7:46 am, edited 1 time in total.
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Help File in HTML?

Post by Shield »

Just simply mirroring PB's online help should do the trick. :)
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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Help File in HTML?

Post by c4s »

helpy wrote:PureBasic Help is delivered in CHM format (Compiled HTML Help)
On Linux/Mac it's not, right?!
Shield wrote:Just simply mirroring PB's online help should do the trick. :)
You mean like manually parsing the links and downloading each page? Hmmm...


Thanks for the suggestions but I was rather hoping for an official HTML help package on all OS. Well, time to add a feature request I guess: HTML Help Package/Zip on All OS
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Help File in HTML?

Post by Shield »

c4s wrote:You mean like manually parsing the links and downloading each page? Hmmm...
We're coders, we don't do anything manually. :lol:

If you have wget, this should do the trick:

Code: Select all

wget -p -k -np http://www.purebasic.com/documentation/index.html
I'm not advocating to do this, even though the load on the servers is absolutely negligibly.
Maybe Fred/Freak/Andre can make this available for download.
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
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Help File in HTML?

Post by Keya »

c4s wrote:
helpy wrote:PureBasic Help is delivered in CHM format (Compiled HTML Help)
On Linux/Mac it's not, right?!
I was wondering today about this (which helpfile format is best to use for our apps).

My googling suggests CHM is still very Windows-only, and even on Windows we know it has various problems with not displaying content etc - an issue a helpfile should never have. ("Dear Support, how do i do this?" "Please refer to page 3 in the helpfile" "But it doesn't show any content!")

But my googling also suggests that there still isn't a single format to use! So it seems there's really only two options: PDF, or a folder of html files (or .txt if that's more your style!)

I checked how PB does it:
On Windows it's CHM.
On Linux it's a CHM-like format in visual appearance (but definitely not CHM), but i couldnt figure out what it is - it starts with "2zlp" as the first four magic bytes, followed by a couple of tiny fragments of plaintext then the rest is compressed, but 7zip wasn't able to open it - strange as it can open just about any public archive format.
On Mac it's not a file but a \help\ subfolder full of html files, in subdirectories the same as they'd appear in the helpfile, eg \Array\ etc
(c4s hopefully that answers your Q :))

PDF should be fine - everyone's got a PDF reader or can easily access one, though i still don't like that 3rd party reliability just to be able to read a helpfile and inevitably it would force some people to download a PDF viewer just to access help.

So at the moment i'm leaning towards a \help\ directory full of htm files like PB on Mac. It'll also make it easy to keep a copy of the help on my website too and reduce having to do/write about some things twice
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Help File in HTML?

Post by c4s »

Hey Keya, thanks for your investigation. Currently I'm manually unpacking the provided CHM with "hh -decompile output PureBasic.chm" and then creating a ZIP of the output folder. It's tedious and annoying but for me it does the job until we get the HTML on all OS's...
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Help File in HTML?

Post by collectordave »

Hi All

I gave up on .chm files for my apps as windows flags these as a security risk even when Microsoft tools are used to make them. I think for our apps the webgadget and HTML is the way to go.

I have started to produce help files in HTML and am looking to write a tool to help.

So far I have a small module to call up a window with a webgadget and display particular web pages from a help folder link and everything seems to work ok

Manually producing these files is a pain so I will start on the tool ASAP. There are some tools out there that will do this but they cost money.

Regards

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 284
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: Help File in HTML?

Post by deeproot »

collectordave wrote:So far I have a small module to call up a window with a webgadget and display particular web pages from a help folder link and everything seems to work ok
That's essentially the way I've done my Help for Mac and Linux. My module shows a help window that's a near clone of the Windows Help and works in the same way as the PureBasic Help with XML files to provide the Contents and Index. If I get time to tidy up my horribly scruffy code, I'll post it on the forum.

I make all the files manually and actually I didn't find it too bad, even with a reasonably big Help at well over 100 pages. A long time ago, for a different purpose, I used a couple of commercial Help generating products and to be honest I did not find much advantage over the manual method! Takes a fair bit of time however it's done and at least doing it manually keeps things simple!
collectordave wrote:I gave up on .chm files for my apps as windows flags these as a security risk even when Microsoft tools are used to make them.
I don't really see the problem using .chm if it's created yourself and used local on the PC (not over the network). I still use .chm for Windows and no issues have been reported. I create the chm with Microsoft HTML Help Workshop and the source HTML files are the same as used for Mac and Linux, so there's no duplication.
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Help File in HTML?

Post by collectordave »

.chm not just used local on my pc my apps are downloaded by users which report to me that microsofr reports them as a security risk and I can do without emails about security risks.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 284
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: Help File in HTML?

Post by deeproot »

collectordave wrote:.chm not just used local on my pc my apps are downloaded by users which report to me that microsofr reports them as a security risk and I can do without emails about security risks.
That's interesting and also a bit worrying!!

My .chm help files are also bundled in with my applications and downloaded by customers. Haven't yet had any messages - but maybe just been lucky so far? Most of my customers are on Windows. Not seen any issues myself but only run Win7. I know about problems opening from a network drive, but can't find much other solid information. Fortunately my home-grown HTML viewer also works for Windows so I can switch if I start getting hassle!
Post Reply