module CodeRay

def encode code, lang, format, options = {}

See CodeRay::Encoder.encode.

+options+ will be passed to the Encoder.
encodes it with the Encoder for +format+.
This scans +code+ with the the Scanner for +lang+ and then

Encode a string.
def encode code, lang, format, options = {}
  encoder(format, options).encode code, lang, options
end