objc: add array literals (thanks @mehowte)
slim: reset ruby and html lexers, be less eager with guessing, detect html entities (thanks @elstgav)
js: add yield
as a keyword (thanks @honzabrecka)
elixir: add alias exs
(thanks @ismaelga)
json: lex object keys as Name::Tag
(thanks @morganjbruce)
swift: add support for @noescape
and @autoclosure(escaping)
(thanks @radex)
and make as?
and as!
look better
sass/scss: add support for @each
, @return
, @media
, and @function
(thanks @i-like-robots)
diff: make the whole thing more forgiving and less buggy (thanks @rumpelsepp)
c++: add arduino file mappings and also Berksfile (thanks @Razer6)
liquid: fix #237 which was dropping content (thanks @RadLikeWhoa)
json: add json-api mime type (thanks @brettchalupa)
new lexer: glsl (thanks @sriharshachilakapati)
new lexer: json-doc, which is like JSON but supports comments and ellipsis (thanks @textshell)
add documentation to the --formatter
option in rougify help
(thanks @mjbshaw)
new website! http://rouge.jneen.net/ (thanks @edwardloveall!)
@objc_block
and fix eof comments (#226). Thanks @radex!-v
flag to print version (#225). Thanks @RadLikeWhoa!alias_method
as a builtin (#223). Thanks @kochd!.S
extensionlexer fixes and tweaks:
require_relative
as a builtin (thanks @NARKOZ)new lexers:
new filetype associations:
other:
::
/=
operator#rouge_formatter
's override pattern
box
keyword and associated builtinsfoo[bar] / baz
being highlighted as a regex<pre ...><code>...</code></pre>
if :wrap
is not overridden
(thanks @Arcovion):inline_theme
(thanks @Arcovion):start_line
option for html line numbers (thanks @sencer)rougify help style
{ key: /regex/ }
(#134)1e-2
)100'000'000
)%=
as an operator in the right context#
as an operator#rouge_formatter
for custom formatting optionsRegexLexer#group
(internal). Use #groups
instead.rougify --version
<pre>
tag, which is invalid HTML. This was previously causing issues with HTML
post-processors such as loofah. This may break some stylesheets, as it
changes the generated markup, but stylesheets only referring to the scope
passed to the formatter should be unaffected.Lexer.load_const
, which
closes the long-standing #66rougify
:forward_classname
error tokensappend
and prepend
def-@
Rouge::Lexers::Text
renamed to Rouge::Lexers::PlainText
:inline_theme
option to Formatters::HTML
for environments
that don't support stylesheets (like super-old email clients)Formatters::HTML
optionslicense
key in the gemspecrequire
works properly.:wrap
option to the html formatter (default true) to provide
the <pre>
wrapper. This allows skipping the wrapper entirely for
postprocessing. (thanks @cjohansen!)nginx.conf
vs. *.conf
, or *.pl
for both prolog and perl)Lexer.guesses
which can return multiple or zero results for a
guess.Capfile
, Vagrantfile
,
*.ru
and *.prawn
) (@nathany)thankful_eyes
theme now colors Literal.Date
lib/rouge.rb
cljs
alias, and make it more visually balanced by using
Name
instead of Name.Variable
.*.cljs
) as Clojure (@blom)Regexp
, especially if we're not adding anything to it.#
in %
-delimited stringsrougify
now streams the formatted text to stdout as it's
available instead of waiting for the lex to be done.postprocess
for performance reasons - it wasn't that
useful in the first place.--scope=SELECTOR
option to rougify style
:line_numbers
option to the HTML formatter to get line
numbers! The styling for the line numbers is determined by
the theme's styling for 'Generic.Lineno'
option
and to Regexp#source
(@korny):token
option to the text lexerrake builtins:vim
rake phpbuiltins
- renamed to rake builtins:php
module
keyword.rougify
executable to
terminal256
.rougify list
, and added short descriptions to all of
the lexers.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。