News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Howto open .html file for editing ?

Started by Boo2, April 28, 2011, 11:55:59 AM

Previous topic - Next topic

Boo2

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

Jenna

"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.

Boo2

Quote from: benkenobi01 on April 28, 2011, 05:15:36 PM
or just open it in notepad++ or whatever editor...

That's a joke, right ?

Boo

Boo2

Quote from: jens 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.

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

stahta01

#4
Code::Blocks is made for C/C++ Programming.

It is a poor workman who blames their tools.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

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.

vici

QuoteAnd as C::B is mainly a C/C++ IDE we did it this way.

Well, an IDE is an editor on steroids, not a viewer on steroids.

A decent software would have an EDIT button in the viewer - just in case. People expect an editor to edit, so if the editing is not the default action, it should be easily reachable without internet searches.

So this is why I kindly ask the development team to help us poor users - add an EDIT button in the HTML viewer.

Note: I do not intend to use C::B as the main tool for html files, but I need an alternate viewer / editor software occasionally.