On Tue, Feb 19, 2013 at 2:12 PM, Steve Borho <[email protected]> wrote:
>
>
>
> On Tue, Feb 19, 2013 at 2:06 PM, Robin Pellatt <[email protected]>wrote:
>
>> Hi Folks,
>>
>> The commit message window seems to use some sort of syntax highlighting.
>> Is there any way of turning this off? I just want plain text in there.
>> I'm using version 2.6.
>>
>
> It's not configurable at this time, but this would be a simple patch if
> someone wanted to hack on this.
>
> tortoisehg/hgqt/messageentry.py line 32 adds the lexer:
> self.setLexer(QsciLexerMakefile(self))
>
> That line just needs to be made conditional based on a global QSettings
> option, toggleable from the menu that the MessageEntry class builds for
> itself.
>
> If you're running from source you can simply comment out that line
>
As it turned out, it wasn't quite this simple. When the message entry's
lexer is not set, the commit tool will crash when it tries to add
completion strings for file names and variables in your code. I couldn't
find a "base" lexer which would not add any colors but simply support
completions, so at the moment when you disable syntax highlighting you also
disable file name and variable auto-completions.
--
Steve Borho
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss