Medit and Conky (en)

From Conky PitStop

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
[[Category:Editing (en)]]
[[Category:Editing (en)]]
[[Category:Tips and tricks (en)]]
[[Category:Tips and tricks (en)]]
-
{{i18n|en|medit and Conky)}}
+
{{i18n|en|medit and Conky}}
You can highlight Conky's syntax in '''medit''' now as well as any editor that uses gtksourceview-2.0 or gtksourceview-3.0.
You can highlight Conky's syntax in '''medit''' now as well as any editor that uses gtksourceview-2.0 or gtksourceview-3.0.

Revision as of 21:00, 17 December 2011

medit and Conky

 Language   English   Français   


You can highlight Conky's syntax in medit now as well as any editor that uses gtksourceview-2.0 or gtksourceview-3.0.

The original script came from this blog but has been updated to work with conky's syntax (variables and config_settings) as they existed on 11/11/11. Almost 100 lines of extra code. If you know the owner of the blog, please let him know the file here is updated and he is more then welcome to use it at his site.

It is known to work on medit v1.0.3 and 1.0.5 and gedit v3.0.6 (gtksourceview-3.0) as well.

The file Coloration_conky_11_11_11.tar.gz as per the original, will extract to:

/.local/share/gtksourceview-2.0/language-specs/conkyrc.lang

For medit you MUST move the file to:

/usr/share/medit-1/language-specs/conkyrc.lang

Note: highlighting works automatically if the filename contains 'conkyrc' anywhere in it. Unlike gedit medit will not "remember" a file once you select it, for example: "Astro_NEO", gedit will remember that file always - medit at the moment doesn't.

Conkyrc.lang medit.png
Coloration_conky_11_11_11.tar.gz

Since I name my conky files almost anything but conkyrc I have made a slight change to the conkyrc.lang file.

Line 49 in this version reads:

    <property name="globs">*conkyrc*</property>

it's the two wildcards before and after conkyrc that insure any file with conkyrc in it somewhere will be colour coded.

I have changed mine to read:

   <property name="globs">*.cps</property>

so any conky file I create with a .cps extension will get colour coded.

You did know that you can call a conky file almost anything right? thisismyconky.txt will even work!

Personal tools
Namespaces
Variants
Actions
Navigation
English
Français
Toolbox