PureBasic.chm modern style

Developed or developing a new product in PureBasic? Tell the world about it.
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

PureBasic.chm modern style

Post by Marc56us »

:idea: During the confinement, I renovate some things and therefore, like many, doing a little painting.
It's too dangerous to climb on a ladder to repaint the ceilings (and I'm old), so I 'paint' the PB help file.

Screenshot Actual/New

Just replaced the colors and fonts to modernize a little. (Yellow background to white, Courier to Consola etc)
No modification of the original text contrent (PB v5.72 LTS)

The page of my site is in french, but I also repainted the English version. Direct link to the English instruction and file.

To use it in IDE: Close PB IDE if open, rename or save your original Purebasic.chm (or move-it) then replace it with Purebasic_572_En.chm and rename it in Purebasic.chm. Nothing will be changed in registry or anywhere else.

:!: Important: After download, if right panel of help is empty, open Properties of file, click Unblock, then click Apply.
(This is a Windows security 'feature' with .CHM file)

There is only one file that you just have to put in place of the current one (after renaming it)
There are no changes in the configuration or in the registry. So you can go back at any time.

Enjoy :wink:

Translated with http://www.DeepL.com/Translator (free version)
User avatar
chi
Addict
Addict
Posts: 1034
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: PureBasic.chm modern style

Post by chi »

Nice one, thank you! I would prefer a dark version though :wink:
Et cetera is my worst enemy
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: PureBasic.chm modern style

Post by VB6_to_PBx »

Thanks !

good choice going from Courier New or Courier to Consolas Font 8)

also Consolas "Regular" Font "prints out on paper" at higher quality

whereas , if i use Courier New Font for Monitor , i use Regular Bold
and print out on paper with just Courier New "regular"

it would be nicer looking IMO , to color Code Font in a darker blue than your chosen light-blue color
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
BarryG
Addict
Addict
Posts: 3318
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic.chm modern style

Post by BarryG »

I prefer the original color scheme. This isn't going to replace it, is it? I don't know due to the IDE going open-source.
nutsbox
New User
New User
Posts: 8
Joined: Sun Jan 17, 2016 8:40 am

Re: PureBasic.chm modern style

Post by nutsbox »

Thanks for this @Marc56us.

This is great! :D
AZJIO
Addict
Addict
Posts: 1358
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic.chm modern style

Post by AZJIO »

Débloquage

La première fois que vous allez lancer l'aide, il se peut que la colonne des rubriques soit vide
upload the file using a zip archive, then there will be no problems
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: PureBasic.chm modern style

Post by Marc56us »

Thanks all 8)

@chi
Nice one, thank you! I would prefer a dark version though
I will do a dark version soon (just thinking of what colors for background/code/links/constants)

@VB6_to_PBx
it would be nicer looking IMO , to color Code Font in a darker blue than your chosen light-blue color
You'r right, I have change color code to dark blue insted of light blue. New version is online, same name.

@ BarryG
I prefer the original color scheme. This isn't going to replace it, is it? I don't know due to the IDE going open-source.
No, this CHM is not official. I don't do it with source, but directly from orginal .chm (decompile with hh.exe and recompile with hhc.exe)

@AZJIO
I'm sorry, I didn't see that you also offered a modernized help before, because the announce was in the section "Bugs - Documentation" and not in "Miscellaneous - Announcement". Very good job you have done!

:wink:
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: PureBasic.chm modern style

Post by VB6_to_PBx »

@VB6_to_PBx
Quote:
it would be nicer looking IMO , to color Code Font in a darker blue than your chosen light-blue color
You'r right, I have change color code to dark blue insted of light blue. New version is online, same name.
its looks nicer now with darker Code Font 8)

its perfect for my taste now :D

i would also like to tryout your Darker Scheme version when its finished
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
Michael Vogel
Addict
Addict
Posts: 2677
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: PureBasic.chm modern style

Post by Michael Vogel »

Marc56us wrote:decompile with hh.exe and recompile with hhc.exe
Great idea, but how did you get a .hhp file? I tried decompiling a while ago, but missed to extract a working project file for the compiler.
AZJIO
Addict
Addict
Posts: 1358
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic.chm modern style

Post by AZJIO »

Michael Vogel wrote:Great idea, but how did you get a .hhp file? I tried decompiling a while ago, but missed to extract a working project file for the compiler.
Do it yourself

Code: Select all

[OPTIONS]
Compatibility=1.1 or later
Compiled file=PureBasic.chm
Contents file=Table of Contents.hhc
Default Window=Help Window
Default topic=Reference/reference.html
Display compile progress=Yes
Enhanced decompilation=Yes
Error log file=_errorlog.txt
Full-text search=Yes
Index file=Index.hhk
Language=0x409
Title=PureBasic 5.70 (12.04.2020)

[WINDOWS]
Help Window="PureBasic 5.70 (12.04.2020)","Table of Contents.hhc","Index.hhk","Reference/reference.html",,,,,,0x63520,,0x10000c,[0,0,1024,768],0x80000,,,,,,0


[INFOTYPES]
User avatar
gurj
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: PureBasic.chm modern style

Post by gurj »

for get purebasic.hhp when decompiling; in purebasic.hhp add:
[FILES]
purebasic.hhp
my pb for chinese:
http://ataorj.ys168.com
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: PureBasic.chm modern style

Post by Marc56us »

The minimun you need for Purebasic.hhp

Code: Select all

[OPTIONS]
Compatibility=1.1 or later
Compiled file=Purebasic.chm
Contents file=Table of Contents.hhc
Default topic=Reference\reference.html
Display compile progress=No
Index file=Index.hhk

[FILES]

[INFOTYPES]
1. Decompile

Code: Select all

hh -decompile Output_Directory\ PureBasic.chm
2. Edit HTML files as you want

3. Compile

Code: Select all

hhc Purebasic.hhp
That's all
User avatar
Michael Vogel
Addict
Addict
Posts: 2677
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: PureBasic.chm modern style

Post by Michael Vogel »

Thanks, works nearly perfect, only the full text search is broken...
...played around with some parameters with no success.

When using the project file below (must be in the same directory like the "index" and "table of content" files) I get the warnings message:

Code: Select all

The following files were not compiled:
Unable to open pb\Purebasic.hhp.

Code: Select all

[OPTIONS]
Compatibility=1.1 or later
Language=0x409
Full-text search=Yes
Binary Index=Yes
Binary TOC=No
Auto Index=Yes

Display compile progress=Yes
Display compile notes=Yes
Enhanced decompilation=Yes
Error log file=_errorlog.txt

Compiled file=Purebasic.chm
Contents file=Table of Contents.hhc
Default topic=Reference\reference.html
Index file=Index.hhk

Default Window=Help Window
Title=PureBasic 5.72

[WINDOWS]
Help Window="PureBasic 5.72","Table of Contents.hhc","Index.hhk","Reference/reference.html",,,,,,0x63520,,0x10000c,[0,0,1024,768],0x80000,,,,,,0

[INFOTYPES]
User avatar
gurj
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: PureBasic.chm modern style

Post by gurj »

The following files were not compiled:
Unable to open pb\Purebasic.hhp.
this:
same directory like the "index" and "table of content" and
"purebasic.hhp" files.
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: PureBasic.chm modern style

Post by gurj »

If the hhc.exe lacks ITCC.DLL can reduce CHM about 1/5 volume, but the finding function will be useless.
same directory like the "index" and "table of .....
add CommonCode.htm
then
purebasic.hhp, format Ansi:

Code: Select all

[OPTIONS]
Default Window=main
Language=2052
Default Font=System, 12
compiled file=PureBasic.chm
Error log file=Errlog.txt
Compatibility=1.1
Binary Index=No
Full-text search=Yes

[WINDOWS]
main="PureBasic 5.72","Table of Contents.hhc","Index.hhk","Reference\reference.html","Reference\reference.html","Reference\variables.html","Variables, Types and Operators
","CommonCode.htm","CommonCode",0x61560,400,0x1C104C,[30,30,990,730],0x30000,0x0,,0,,,

[MAP]

[ALIAS]

[MERGE FILES]

[FILES]
purebasic.hhp

Last edited by gurj on Mon Apr 13, 2020 12:41 am, edited 1 time in total.
my pb for chinese:
http://ataorj.ys168.com
Post Reply