"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/plugins/outhtml_ligature_fonts.lua" (12 May 2020, 402 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 --[[
    2 Adds ligature fonts
    3 ]]
    4 
    5 Description="Adds ligature fonts in HTML output"
    6 
    7 Categories = {"format", "html", "usability" }
    8 
    9 
   10 function themeUpdate()
   11 
   12   if (HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
   13     Injections[#Injections+1]="pre.hl, ol.hl { font-family: Monoid,\"Fira Code\",\"DejaVu Sans Code\",monospace;}"
   14   end
   15 
   16 end
   17 
   18 Plugins={
   19 
   20   { Type="theme", Chunk=themeUpdate }
   21 
   22 }