Radiant Extension Settings

An extension README will sometimes say you can configure it, but it’s not clear in which you’re supposed to put the configuration settings.

For example, in Alexey Noskov’s radiant-code-extension code syntax highlighting extension, the README says you can specify your preferred code processor in the code.processor setting. This is typical shorthand and one of the things that makes Radiant a bit difficult to approach for a new user.

This configuration goes somewhere in the application configuration, say the environment.rb file, like so:

Radiant::Config[‘code.processor’] = ‘coderay’

Of course, if you are using radiant-settings-extension, then it’s possible the extension created these settings for you during the extension migration (but you have to migrate the settings extension FIRST so that subsequent extension migrations can use the special database fields). If not, you can create new settings, for example in the case of the radiant-code-extension:

config.processor, config.theme and config.language