It is currently Tue Jan 26, 2021 10:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: PureBasic.chm modern style
PostPosted: Sat Apr 11, 2020 5:03 pm 
Offline
Addict
Addict

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 968
: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)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sat Apr 11, 2020 6:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 771
Location: Linz, Austria
Nice one, thank you! I would prefer a dark version though :wink:

_________________
Et cetera is my worst enemy


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sat Apr 11, 2020 9:53 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon May 09, 2011 9:36 am
Posts: 547
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sat Apr 11, 2020 11:28 pm 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1213
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 4:20 am 
Offline
New User
New User

Joined: Sun Jan 17, 2016 8:40 am
Posts: 8
Thanks for this @Marc56us.

This is great! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 4:41 am 
Offline
User
User

Joined: Sun May 14, 2017 1:48 am
Posts: 59
Quote:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 7:57 am 
Offline
Addict
Addict

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 968
Thanks all 8)

@chi
Quote:
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
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.

@ BarryG
Quote:
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:


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 8:14 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon May 09, 2011 9:36 am
Posts: 547
Quote:
@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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 11:15 am 
Offline
Addict
Addict
User avatar

Joined: Thu Feb 09, 2006 11:27 pm
Posts: 2562
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 1:44 pm 
Offline
User
User

Joined: Sun May 14, 2017 1:48 am
Posts: 59
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:
[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]


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 2:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 22, 2009 3:48 am
Posts: 640
Location: china
for get purebasic.hhp when decompiling; in purebasic.hhp add:
[FILES]
purebasic.hhp

_________________
my pb for chinese:
http://ataorj.ys168.com


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 2:24 pm 
Offline
Addict
Addict

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 968
The minimun you need for Purebasic.hhp
Code:
[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:
hh -decompile Output_Directory\ PureBasic.chm

2. Edit HTML files as you want

3. Compile
Code:
hhc Purebasic.hhp

That's all


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 5:27 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Feb 09, 2006 11:27 pm
Posts: 2562
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:
The following files were not compiled:
Unable to open pb\Purebasic.hhp.


Code:
[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]


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 9:44 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 22, 2009 3:48 am
Posts: 640
Location: china
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic.chm modern style
PostPosted: Sun Apr 12, 2020 10:35 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 22, 2009 3:48 am
Posts: 640
Location: china
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:
[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


_________________
my pb for chinese:
http://ataorj.ys168.com


Last edited by gurj on Mon Apr 13, 2020 12:41 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Josepho and 10 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