Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sethjackson on January 04, 2006, 03:15:57 am

Title: New (minor/maybe-useless) feature
Post by: sethjackson on January 04, 2006, 03:15:57 am
I modified the C::B code so C::B now has a language menu. This allows for quick on the fly changing of the lexer of the current file. It works the same way as the SciTE language menu AFAIK. I'm wondering if this would be useful to anyone besides me? If so I'll post a patch to SF.net. Otherwise download here....
Also, if it is useful. I can easily add more languages. :)

Oh yeah screeny.

(http://img341.imageshack.us/img341/8269/untitled4hs1.png) (http://imageshack.us)
Title: Re: New (minor/maybe-useless) feature
Post by: Ceniza on January 04, 2006, 03:17:36 am
It was somehow already implemented (dunno if the menu was added too). Just search the forums :)
Title: Re: New (minor/maybe-useless) feature
Post by: sethjackson on January 04, 2006, 03:19:09 am
It was somehow already implemented (dunno if the menu was added too). Just search the forums :)

http://forums.codeblocks.org/index.php?topic=1746.0

I don't think the menu was added that is why I coded this. :)

Actually I don't even see the toolbar....  :P

But then again I usually miss something along the way........... :lol:
Title: Re: New (minor/maybe-useless) feature
Post by: sethjackson on January 04, 2006, 08:51:19 pm
I posted it a SF.net. Hope noone minds.  :lol:

https://sourceforge.net/tracker/index.php?func=detail&aid=1397170&group_id=126998&atid=707418
Title: Re: New (minor/maybe-useless) feature
Post by: Michael on January 04, 2006, 09:05:18 pm
Interesting and useful addition (languages menu) :). But, before applying it it would be IMHO better to wait the implementation of the action-based menu system as thomas posted here (http://forums.codeblocks.org/index.php?topic=1833.msg14113#msg14113).

Michael
Title: Re: New (minor/maybe-useless) feature
Post by: sethjackson on January 08, 2006, 07:13:27 pm
This functionality is in Edit -> Highlight mode -> your_lexer. :)