"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "extras/langs-examples/_adoc/erb/block_listing.html.erb" between
highlight-3.48.tar.bz2 and highlight-3.49.tar.bz2

About: highlight converts source code to formatted text with syntax highlighting (for e.g. to HTML, XHTML, RTF, TeX, LaTeX, SVG, BBCode and XML format).

block_listing.html.erb  (highlight-3.48.tar.bz2):block_listing.html.erb  (highlight-3.49.tar.bz2)
<%# ____ v1.0.1 | 2018/12/24 ____ %>
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['listingblock', role].compact * ' ' %>"><% <%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['listingblock', role].compact * ' ' %>"><%
if title? %> if title? %>
<div class="title"><%= captioned_title %></div><% <div class="title"><%= captioned_title %></div><%
end %> end %>
<div class="content"><% <div class="content"><%
nowrap = !(@document.attr? :prewrap) || (option? :nowrap) nowrap = !(@document.attr? :prewrap) || (option? :nowrap)
if @style == 'source' if @style == 'source'
language = attr :language language = attr :language
code_class = language ? [language, %(language-#{language})] : [] code_class = language ? [language, %(language-#{language})] : []
pre_class = ['highlight'] pre_class = ['highlight']
skipping to change at line 33 skipping to change at line 34
pre_class << 'linenums' if attr? :linenums pre_class << 'linenums' if attr? :linenums
pre_class << language if language pre_class << language if language
pre_class << %(language-#{language}) if language pre_class << %(language-#{language}) if language
code_class = [] code_class = []
when 'html-pipeline' when 'html-pipeline'
pre_lang = language pre_lang = language
pre_class = code_class = [] pre_class = code_class = []
nowrap = false nowrap = false
end end
pre_class << 'nowrap' if nowrap %> pre_class << 'nowrap' if nowrap %>
<pre<%= pre_class.empty? ? nil : %( class="#{pre_class * ' '}") %><%= pre_lang & & %( lang="#{pre_lang}") %>><code<%= code_class.empty? ? nil : %( class="#{code_ class * ' '}") %>><%= content %></code></pre><% <pre<%= pre_class.empty? ? nil : %( class="#{pre_class * ' '}") %><%= pre_lang & & %( lang="#{pre_lang}") %>><code<%= code_class.empty? ? nil : %( class="#{code_ class * ' '}") && %( data-lang="#{pre_lang}") %>><%= content %></code></pre><%
else %> else %>
<pre<%= nowrap ? ' class="nowrap"' : nil %>><%= content %></pre><% <pre<%= nowrap ? ' class="nowrap"' : nil %>><%= content %></pre><%
end %> end %>
</div> </div>
</div> </div>
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)