diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-03 03:00:49 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-03 03:00:49 +0000 |
commit | 5f2b3969a73a6756d3cd224240ae1be6408d5801 (patch) | |
tree | 83306cdc5f971dc2901afd81fc37fd242f2f3e74 /support/TeX4ht/source/tex4ht-html4.tex | |
parent | 460879b45ff6e83765da88734e8cc0c6da5043eb (diff) |
CTAN sync 202202030300
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index 2a0568c96f..afb66c00be 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1011 2021-11-09 09:00:24Z michal_h21 $ +% $Id: tex4ht-html4.tex 1068 2022-02-01 16:56:15Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -15291,7 +15291,7 @@ Configuration for the inline code {{\everypar{}\leavevmode}} {{\everypar{}\leavevmode}} {|<nbsp|>% - \HCode{<br /><span class="label">}} + \HCode{<br />\Hnewline<span class="label">}} {\HCode{</span>}}% } {%\special{t4ht@)} @@ -15320,6 +15320,18 @@ Configuration for the inline code % \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par} +Support for colors in listings + +\<configure html4 listings\><<< +\lst@AddToHook{PostOutput}{\HCode{</span>}}% + +\lst@AddToHook{OutputBox}{% + % get current color in the CSS form + \extractcolorspec{.}\html@color% + \expandafter\convertcolorspec\html@color{HTML}\html@color% + \HCode{<span style="color:\#\html@color">}}% init +>>> + %%%%%%%%%%%%%%%%%%%%% \subsection{Verbatim} %%%%%%%%%%%%%%%%%%%%% |