pub fn to_html(&self) -> String {
        format!("{}", html! {
            : doctype::HTML;
            html {
                head {                
                    title : "Symbol Table";
                    style : "table {
                        font-family: arial, sans-serif;
                        border-collapse: collapse;
                    }
                
                    td, th {
                        border: 1px solid #dddddd;
                        text-align: left;
                        padding: 8px;
                    }
                
                    tr:nth-child(even) {
                        background-color: #dddddd;
                    }";
                }
                body {
                    // attributes
                    h1(id="heading", class="title") : "Symbol Table Sizes";
                    table(class="tg") {
                        thead {
                            tr {
                                th: "Name";
                                th: "Section";
                                th: "Address";
                                th: "Size";
                            }                                          
                        }
                        tbody {
                            @ for i in 0..self.len() {
                                tr { 
                                    td: Raw(format!("{}", self[i].name));
                                    td: Raw(format!("{}", self[i].section));
                                    td: Raw(format!("{:08x}", self[i].address));
                                    td: Raw(format!("{}", self[i].alignment_or_size));
                                }
                            }
                        }                    
                    }
                }
            }
        })
    }
/// Converts a symbol table into an HTML formatted string
Converts a symbol table into an HTML formatted string
Converts a symbol table into an HTML formatted string
pub fn to_html(&self) -> String {
        format!("{}", html! {
            : doctype::HTML;
            html {
                head {                
                    title : "Symbol Table";
                    style : "table {
                        font-family: arial, sans-serif;
                        border-collapse: collapse;
                    }
                    td, th {
                        border: 1px solid #dddddd;
                        text-align: left;
                        padding: 8px;
                    }
                    tr:nth-child(even) {
                        background-color: #dddddd;
                    }";
                }
                body {
                    // attributes
                    h1(id="heading", class="title") : "Symbol Table Sizes";
                    table(class="tg") {
                        thead {
                            tr {
                                th: "Name";
                                th: "Section";
                                th: "Address";
                                th: "Size";
                            }                                          
                        }
                        tbody {
                            @ for i in 0..self.len() {
                                tr { 
                                    td: Raw(format!("{}", self[i].name));
                                    td: Raw(format!("{}", self[i].section));
                                    td: Raw(format!("{:08x}", self[i].address));
                                    td: Raw(format!("{}", self[i].alignment_or_size));
                                }
                            }
                        }                    
                    }
                }
            }
        })
    }
pub fn to_html ( & self ) -> String { format ! ( " " html { doctype HTML html { head { title " " style " " } body { // attributes h1 ( id " " class " " ) " " table ( class " " ) { thead { tr { th " " th " " th " " th " " } } tbody { for i in 0 self len ( ) { tr { td Raw ( format ( " " self [ i ] name ) ) td Raw ( format ( " " self [ i ] section ) ) td Raw ( format ( " " self [ i ] address ) ) td Raw ( format ( " " self [ i ] alignment_or_size ) ) } } } } } } } ) }
Converts a symbol table into an HTML formatted string
Converts a symbol table into an HTML formatted string
&self