Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Boo2 on April 28, 2011, 11:55:59 am

Title: Howto open .html file for editing ?
Post by: Boo2 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
Title: Re: Howto open .html file for editing ?
Post by: Jenna 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.
Title: Re: Howto open .html file for editing ?
Post by: Boo2 on May 01, 2011, 01:55:22 am
or just open it in notepad++ or whatever editor...

That's a joke, right ?

Boo
Title: Re: Howto open .html file for editing ?
Post by: Boo2 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
Title: Re: Howto open .html file for editing ?
Post by: stahta01 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.
Title: Re: Howto open .html file for editing ?
Post by: Jenna 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.