Closed ghost closed 12 years ago
Plugins are registred with coderay after they are required. Standard installation does not know about coderay_bash plugin which is installed in another directory and to use bash scanner you need to require it manually. Therefore to use bash scanner from command line you need to run coderay command using ruby interpreter and pass all extra modules you have installed eg:
ruby -rcoderay_bash `which coderay` -bash my_script.sh
Hm well I was wanting to use this with Jekyll but it looks like that is not an option.
Plug bash plugin into jekyll like ruby -rcoderay_bash jekyll
does not work?
I got it to work with
ruby -Srcoderay_bash jekyll
Thank you sir!
I found a better option for me is to just patch Coderay
gem install coderay_bash
gem cleanup
cd /usr/lib/ruby/gems/1.8/gems/coderay_bash-*
cp -r lib ../coderay-*
cd -
# Jekyll can now find Bash!
jekyll
In such situation I usually create my own starting script like run-jekyll and put all necessary there and then I don't have to remember copy bash plugin always new version of coderay is released.
Maybe I am doing something wrong, but this is not working for me