mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 05:11:00 +00:00
Colorize all files, even if they are generated
This commit is contained in:
@@ -640,7 +640,7 @@ module Linguist
|
|||||||
#
|
#
|
||||||
# Returns html String
|
# Returns html String
|
||||||
def colorize(options = {})
|
def colorize(options = {})
|
||||||
return if !text? || large? || generated?
|
return if !text? || large?
|
||||||
options[:options] ||= {}
|
options[:options] ||= {}
|
||||||
options[:options][:encoding] ||= encoding
|
options[:options][:encoding] ||= encoding
|
||||||
lexer.highlight(data, options)
|
lexer.highlight(data, options)
|
||||||
|
|||||||
Reference in New Issue
Block a user