问题:
Liquid error: Traceback (most recent call last):
File “/usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/mentos.py”, line 303, in start
res = self.get_data(method, lexer, args, kwargs, text)
File “/usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/mentos.py”, line 171, in get_data
res = self.highlight_text(text, lexer, formatter_name, args, convert_keys(opts))
File “/usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/mentos.py”, line 122, in highlight_text
lexer = self.return_lexer(lexer, args, kwargs, code)
File “/usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/mentos.py”, line 79, in return_lexer
return lexers.get_lexer_by_name(lexer, **inputs)
File "/usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/vendor/pygments-main/pygments/lexers/_init__.py", line 98, in get_lexer_by_name
raise ClassNotFound(‘no lexer for alias %r found’ % _alias)
ClassNotFound: no lexer for alias ‘txt’ found
解决方案:
1
|
|
搜索引擎里面无效的方案:
1
|
|