"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/plugins/outhtml_ie7_webctrl.lua" (12 May 2020, 1036 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. See also the last Fossies "Diffs" side-by-side code changes report for "outhtml_ie7_webctrl.lua": 3.56_vs_3.57.

    1 --for highlight 3.57
    2 
    3 Description="Adapt HTML to ancient MS Web Controls"
    4 
    5 Categories = {"format", "html", "compatibility" }
    6 
    7 -- optional parameter: syntax description
    8 function syntaxUpdate(desc)
    9 
   10   if (HL_OUTPUT ~= HL_FORMAT_HTML and HL_OUTPUT ~= HL_FORMAT_XHTML) then
   11     return
   12   end
   13 
   14   function DecorateLineBegin(lineNumber)
   15     return ' '
   16   end
   17 
   18   -- trigger OverrideParam
   19   function OnStateChange(oldState, newState, token, groupID, lineno, column)
   20     if (called==nil) then
   21       OverrideParam("format.spacer", " ")
   22       OverrideParam("format.maskws", "true")
   23       called=1
   24     end
   25     return newState
   26   end
   27 
   28 end
   29 
   30 Plugins={
   31 
   32   { Type="lang", Chunk=syntaxUpdate },
   33 
   34 }
   35 
   36 --[[============================================================================
   37                                   CHANGELOG
   38 ================================================================================
   39 
   40 v1.1 (2020/05/12) | Highlight 3.57
   41 
   42   - makes use of OverrideParam to change default HTML whitespace handling
   43 
   44 v1.0
   45   - initial version
   46 
   47 --]]