понедельник, 10 сентября 2012 г.

Midnight Commander color scheme and code highlight

Params:
Linux A230512 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
GNU Midnight Commander 4.8.1

Problem:
Need another color scheme and code highlightes in Midnight Commander.

Solution:
Configuration file for mc-4.8.1 located here:
~/.config/mc/ini

1) Enable code highlightes in mc editor.
Change highlight parameter in mc config file to 1:
editor_syntax_highlighting=1
May be you need to copy misc/filehighlight.ini file from mc source to /etc/mc directory.

2) Apply custom color scheme. 
Set appropriate parameter:
[Color]
base_color=lightgray,default:normal=lightgray,default:selected=black,green:marked=yellow,default:markselect=white,green:errors=white,red:menu=lightgray,default:reverse=black,lightgray:dnormal=white,default:dfocus=black,green:dhotnormal=brightgreen,default:dhotfocus=brightgreen,green:viewunderline=brightred,default:menuhot=yellow,default:menusel=white,black:menuhotsel=yellow,black:helpnormal=black,lightgray:helpitalic=red,lightgray:helpbold=blue,lightgray:helplink=black,cyan:helpslink=yellow,default:gauge=white,black:input=black,green:directory=white,default:executable=brightgreen,default:link=brightcyan,default:stalelink=brightred,default:device=brightmagenta,default:core=red,default:special=black,default:editnormal=lightgray,default:editbold=yellow,default:editmarked=black,cyan:errdhotnormal=yellow,red:errdhotfocus=yellow,lightgray

!!! IMPORTANT !!!  - use nano or vi or ... to edit mc ini file, but not internal mc-editor,
otherwise your changes will be lost
!

PS: Thanks to this post author. 

http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html
Her color scheme is beauty.

Комментариев нет:

Отправить комментарий