User forums > Help

C::B embedded HTML viewer

(1/1)

eugen_mihailescu:
The C::B manual stated:


--- Quote ---CodeBlocks provides an ’Embedded HTML Viewer’, which can be used to display simple html file and find keywords within this file. Just configure the path to the html file, which should be parsed and enable the checkbox ’Open this file with embedded help viewer’ via the menu ’Settings’ →’Environment’ →’Help Files’ .

--- End quote ---

I've done this for numerous HTML manuals, generated with Doxyblocks/Doxygen or even some plain HTML files. Of course, I have checked the box "Open this file with embedded help viewer".
The most simplest HTML help file I have tested is the following:


--- Code: ---<html>
<body>
The simplest HTML manual ever
</body>
</html>

--- End code ---

(Of course, this is not a HTML help document as those existent on Linux or generated with Doxygen, it was only a tiny shy experiment).

NONE of them seems to work, meaning none of them are opened within the C::B embedded HTML viewer. Instead they are opening with the default editor (like any other .cpp/.h file).

I don't think that this is a bug nor I don't think that the embedded HTML viewer it's not working (for example, the documentation in MAN format load just well in the viewer, so the viewer is working fine).

I am using the C::B svn 7009 with wx2.8.11 on Linux, Unicode, 64-bit.

I have tried to trace the source of the problem so I thought that launching the C::B from terminal will output some warnings or even some errors, if it's really something wrong at all. The only output I've got is what you can see in the attached "codeblocks.log" file (see the most important fragment below):

--- Quote ---Launching /home/eugen/Desktop/simple_manual.html
Text seems to be pure ASCII!
We use user specified encoding: Unicode 8 bit (UTF-8) (ID: 41)
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
--- End quote ---

Does anybody have a clue how to make this thing working? so far I am very impressed about the whole scale of feature that C::B (+plugins) offers to the world, most of them are comparable with many commercial IDE or even better. But this little thing start to scratch my nerves, as a result I'm starting to scratch the C::B's board forum :)

Jenna:
Check "Settings -> Editor... -> File extensions handling" .
Most likely you have an entry for *.html or *.htm there, that tells C::B to open the file in the editor.
It might override the help-plugins settings.
If it is the case, I would say, that it is a bug in the help plugin, because the settings made for helpfiles should have preference over C::B's global settings, if you open a helpfile. At least in my opinion.

Pecan:

--- Quote from: jens on February 19, 2011, 05:15:50 pm ---Check "Settings -> Editor... -> File extensions handling" .
Most likely you have an entry for *.html or *.htm there, that tells C::B to open the file in the editor.
It might override the help-plugins settings.
If it is the case, I would say, that it is a bug in the help plugin, because the settings made for helpfiles should have preference over C::B's global settings, if you open a helpfile. At least in my opinion.

--- End quote ---

Should that be Settings->Environment->File extensions handling?

Jenna:

--- Quote from: Pecan on February 19, 2011, 09:12:41 pm ---
--- Quote from: jens on February 19, 2011, 05:15:50 pm ---Check "Settings -> Editor... -> File extensions handling" .
Most likely you have an entry for *.html or *.htm there, that tells C::B to open the file in the editor.
It might override the help-plugins settings.
If it is the case, I would say, that it is a bug in the help plugin, because the settings made for helpfiles should have preference over C::B's global settings, if you open a helpfile. At least in my opinion.

--- End quote ---

Should that be Settings->Environment->File extensions handling?


--- End quote ---
Yes, thanks for the correction.

oBFusCATed:

--- Quote from: jens on February 19, 2011, 09:32:40 pm ---Yes, thanks for the correction.

--- End quote ---
Hehe, I'm not the only one, who finds these two confusing  :lol:

Navigation

[0] Message Index

Go to full version