highlighters = [hl_gt5, hl_lt5]</code></pre><h2 id="HTML-Table-Format"><a class="docs-heading-anchor" href="#HTML-Table-Format">HTML Table Format</a><a id="HTML-Table-Format-1"></a><a class="docs-heading-anchor-permalink" href="#HTML-Table-Format" title="Permalink"></a></h2><p>The HTML table format is defined using an object of type <a href="../../../lib/library/#PrettyTables.HtmlTableFormat"><code>HtmlTableFormat</code></a> that contains the following fields:</p><ul><li><code>css::String</code>: CSS to be injected at the end of the <code><style></code> section.</li><li><code>table_width::String</code>: Table width.</li></ul><p>Notice that this format is only applied if <code>stand_alone = true</code>.</p><h2 id="HTML-Table-Style"><a class="docs-heading-anchor" href="#HTML-Table-Style">HTML Table Style</a><a id="HTML-Table-Style-1"></a><a class="docs-heading-anchor-permalink" href="#HTML-Table-Style" title="Permalink"></a></h2><p>The HTML table style is defined using an object of type <a href="../../../lib/library/#PrettyTables.HtmlTableStyle"><code>HtmlTableStyle</code></a> that contains the following fields:</p><ul><li><code>top_left_string::Vector{HtmlPair}</code>: Style for the top left string.</li><li><code>top_right_string::Vector{HtmlPair}</code>: Style for the top right string.</li><li><code>table::Vector{HtmlPair}</code>: Style for the table.</li><li><code>title::Vector{HtmlPair}</code>: Style for the title.</li><li><code>subtitle::Vector{HtmlPair}</code>: Style for the subtitle.</li><li><code>row_number_label::Vector{HtmlPair}</code>: Style for the row number label.</li><li><code>row_number::Vector{HtmlPair}</code>: Style for the row number.</li><li><code>stubhead_label::Vector{HtmlPair}</code>: Style for the stubhead label.</li><li><code>row_label::Vector{HtmlPair}</code>: Style for the row label.</li><li><code>row_group_label::Vector{HtmlPair}</code>: Style for the row group label.</li><li><code>first_line_column_label::Union{Vector{HtmlPair}, Vector{Vector{HtmlPair}}}</code>: Style for the first line of the column labels. If a vector of <code>Vector{HtmlPair}}</code> is provided, each column label in the first line will use the corresponding style.</li><li><code>column_label::Union{Vector{HtmlPair}, Vector{Vector{HtmlPair}}}</code>: Style for the rest of the column labels. If a vector of <code>Vector{HtmlPair}}</code> is provided, each column label will use the corresponding style.</li><li><code>first_line_merged_column_label::Vector{HtmlPair}</code>: Style for the merged cells at the first column label line.</li><li><code>merged_column_label::Vector{HtmlPair}</code>: Style for the merged cells at the rest of the column labels.</li><li><code>summary_row_cell::Vector{HtmlPair}</code>: Style for the summary row cell.</li><li><code>summary_row_label::Vector{HtmlPair}</code>: Style for the summary row label.</li><li><code>footnote::Vector{HtmlPair}</code>: Style for the footnote.</li><li><code>source_notes::Vector{HtmlPair}</code>: Style for the source notes.</li><li><code>first_line_of_column_labels::Vector{HtmlPair}</code>: Style for the first line of the column labels.</li></ul><p>Each field is a vector of <a href="@ref"><code>HtmlPair</code></a>, <em>i.e.</em> <code>Pair{String, String}</code>, describing properties and values compatible with the HTML style attribute.</p><p>For example, if we want the stubhead label to be bold and red, we must define:</p><pre><code class="language-julia hljs">style = HtmlTableStyle(
0 commit comments