{"id":615,"date":"2010-05-09T01:10:38","date_gmt":"2010-05-08T23:10:38","guid":{"rendered":"http:\/\/raftaman.net\/?p=615"},"modified":"2021-05-15T11:46:41","modified_gmt":"2021-05-15T09:46:41","slug":"syntaxhighlighter-evolved-and-line-height-2","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=615","title":{"rendered":"SyntaxHighlighter Evolved and line-height"},"content":{"rendered":"<p>As you <a href=\"https:\/\/possiblelossofprecision.net\/?p=35\">probably know<\/a>, I&#8217;m using <a href=\"http:\/\/www.viper007bond.com\/wordpress-plugins\/syntaxhighlighter\/\">SyntaxHighlighter Evolved<\/a> to post syntax-highlighted code. Some people mailed me, that in some of my posted code the underscores are not visible (although copy&#038;paste works). Well, the culprit is the <code>line-height<\/code> attribute of the SyntaxHighlighter Evolved cascading stylesheet:<\/p>\n<pre class=\"brush: css; highlight: [24]; title: ; notranslate\" title=\"\">\r\n.syntaxhighlighter,\r\n.syntaxhighlighter div,\r\n.syntaxhighlighter code,\r\n.syntaxhighlighter table,\r\n.syntaxhighlighter table td,\r\n.syntaxhighlighter table tr,\r\n.syntaxhighlighter table tbody\r\n{\r\n\tmargin: 0 !important;\r\n\tpadding: 0 !important;\r\n\tborder: 0 !important;\r\n\toutline: 0 !important;\r\n\tbackground: none !important;\r\n\ttext-align: left !important;\r\n\tfloat: none !important;\r\n\tvertical-align: baseline !important;\r\n\tposition: static !important;\r\n\tleft: auto !important;\r\n\ttop: auto !important;\r\n\tright: auto !important;\r\n\tbottom: auto !important;\r\n\theight: auto !important;\r\n\twidth: auto !important;\r\n\tline-height: 1.21 !important;\r\n\tfont-family: &amp;quot;Consolas&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important;\r\n\tfont-weight: normal !important;\r\n\tfont-style: normal !important;\r\n\tfont-size: 1em !important;\r\n\t\/*min-height: inherit !important; *\/\/* For IE8, FF &amp;amp; WebKit *\/\r\n\t\/*min-height: auto !important;*\/ \/* For IE7 *\/\r\n\tdirection: ltr !important;\r\n}\r\n<\/pre>\n<p>Simply increasing the <code>line-height<\/code> from the default <code>1.1em<\/code> to <code>1.21em<\/code> in <strong>wp-content\/plugins\/syntaxhighlighter\/syntaxhighlighter\/styles\/shCore.css<\/strong> did the trick.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you probably know, I&#8217;m using SyntaxHighlighter Evolved to post syntax-highlighted code. Some people mailed me, that in some of my posted code the underscores are not visible (although copy&#038;paste works). Well, the culprit is the line-height attribute of the SyntaxHighlighter Evolved cascading stylesheet: .syntaxhighlighter, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=615\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,3],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-css","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":7,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/1825"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}