dongs0104 / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

Need an easier configuration mechanism #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It's possible to change the highlighting parameters (style, font, etc) by 
editing the colorize.sh file in 
the plugin's Resources folder, but that's unpleasant for any number of reasons. 
 Worst of all, if you 
update to a new version of QLCC it overwrites your changes unless you're very 
careful.  We need 
something better.

Ideally we could use Javascript to provide a Preferences "dialog" inside the QL 
popup itself, but a) I 
don't know Javascript, and b) QL plugins are sandboxed, so we would have to 
verify that we can 
actually write a prefs file from within the plugin.

In any case, support for a ~/Library/Preferences/QLColorCode.plist file would 
be easy enough to 
add.  Coders can handle "defaults write" as a configuration mechanism until 
such time that 
something better comes along.  :)

Original issue reported on code.google.com by n8gray@gmail.com on 6 Jan 2008 at 6:43

GoogleCodeExporter commented 8 years ago
As of 0.4 I've added the ability to "defaults write" some configuration 
parameters.  This isn't ideal, but it's good 
enough until somebody decides to write a real configuration 
dialog/program/javascript.  Patches are 
appreciated!  I'm leaving the bug open to let people know it's still a going 
concern.

Original comment by n8gray@gmail.com on 7 Jan 2008 at 5:41