Author Topic: C::B embedded HTML viewer  (Read 7823 times)

Offline eugen_mihailescu

  • Single posting newcomer
  • *
  • Posts: 7
C::B embedded HTML viewer
« on: February 19, 2011, 04:39:38 pm »
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’ .

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>

(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

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 :)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: C::B embedded HTML viewer
« Reply #1 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2876
Re: C::B embedded HTML viewer
« Reply #2 on: February 19, 2011, 09:12:41 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.

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: C::B embedded HTML viewer
« Reply #3 on: February 19, 2011, 09:32:40 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.

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

Yes, thanks for the correction.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: C::B embedded HTML viewer
« Reply #4 on: February 19, 2011, 11:18:31 pm »
Yes, thanks for the correction.
Hehe, I'm not the only one, who finds these two confusing  :lol:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]