Author Topic: Howto open .html file for editing ?  (Read 24692 times)

Offline Boo2

  • Multiple posting newcomer
  • *
  • Posts: 11
Howto open .html file for editing ?
« on: April 28, 2011, 11:55:59 am »
Hi,

I am using Code::Blocks V10.05 and want to edit an html file.  My problem is that whenever I open eg "index.html" <file/open/index.html HTML/PHP/ASP/JS files> the file is displayed in the HTML viewer, not the editor.  I tried adding a registered wildcard as <Settings/Environment/Files extension handling/.html> but that doesn't help.

Thanks,

Boo

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Howto open .html file for editing ?
« Reply #1 on: April 28, 2011, 08:40:36 pm »
"Setings -> Environment -> Files extension handling" is correct.
Add *.htm* and chose to open it in a Code::Blocks editor.

Works fine here on linux and I use it every day at work on windows.

Offline Boo2

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Howto open .html file for editing ?
« Reply #2 on: May 01, 2011, 01:55:22 am »
or just open it in notepad++ or whatever editor...

That's a joke, right ?

Boo

Offline Boo2

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Howto open .html file for editing ?
« Reply #3 on: May 01, 2011, 01:56:53 am »
"Setings -> Environment -> Files extension handling" is correct.
Add *.htm* and chose to open it in a Code::Blocks editor.

Works fine here on linux and I use it every day at work on windows.

OK, that did work OK, I had ".html" where I should have had "*.htm*".

But this is a stupid PITA for an editor of the calibre of Code::Blocks, can anyone tell me why this problem has not been sorted by now ?

Thanks,

Boo

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Howto open .html file for editing ?
« Reply #4 on: May 01, 2011, 05:39:01 am »
Code::Blocks is made for C/C++ Programming.

It is a poor workman who blames their tools.

Tim S.
« Last Edit: May 01, 2011, 05:48:07 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Howto open .html file for editing ?
« Reply #5 on: May 01, 2011, 09:34:42 am »
And we open html-files by default in the html-viewer, because we also use it to show results of some tools, like CCCC or the html build log (if enabled) or some helpfiles or ...
This does not work, if the internal editor opens these files.
So we had to decide what we want.

And as C::B is mainly a C/C++ IDE we did it this way.
But we give you the freedom to tweak it, so it fits your needs.