Colorer cmake.hrc scheme.
- Download repository into somewhere
- Add the following lines into proto.hrc and correct
location link
<prototype name="cmake" group="scripts" description="CMake script">
<location link="somewhere/cmake.hrc"/>
<filename>/(\.cmake)$/i</filename>
<filename weight="3">/(^CMakeLists\.txt)$/i</filename>
<firstline weight="2">/^cmake_minimum_required/xi</firstline>
</prototype>
cd <FarManager>\Plugins\FarColorer\base\hrc\auto
git clone https://github.com/Extrunder/CMake.hrc.git scripts\cmake
rmdir /S /Q scripts\cmake\.git
(it saves some space)
- Create file
<FarManager>\Plugins\FarColorer\base\hrc\auto\proto.hrc
with following lines:
<?xml version="1.0" encoding='Windows-1251'?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
"http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
<prototype name="cmake" group="scripts" description="CMake script">
<location link="scripts/cmake/cmake.hrc"/>
<filename>/(\.cmake)$/i</filename>
<filename weight="3">/(^CMakeLists\.txt)$/i</filename>
<firstline weight="2">/^cmake_minimum_required/xi</firstline>
</prototype>
</hrc>
cd <SomeGoodDir>
git clone https://github.com/Extrunder/CMake.hrc.git cmake
rmdir /S /Q cmake\.git
(it saves some space)
- Create file
<SomeGoodDir>\proto.hrc
<?xml version="1.0" encoding='Windows-1251'?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
"http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
<prototype name="cmake" group="scripts" description="CMake script">
<location link="cmake/cmake.hrc"/>
<filename>/(\.cmake)$/i</filename>
<filename weight="3">/(^CMakeLists\.txt)$/i</filename>
<firstline weight="2">/^cmake_minimum_required/xi</firstline>
</prototype>
</hrc>
- F9 -> Options -> Plugins configuration -> FarColorer -> Users file of schemes
- Type there
<SomeGoodDir>\proto.hrc
... TODO ...