Skip to content

Commit

Permalink
Add some CSS and JS magic to cope with overly long command flag lists…
Browse files Browse the repository at this point in the history
… in the command docs.
  • Loading branch information
cr7pt0gr4ph7 committed Jun 21, 2015
1 parent 282f2fb commit 9309eb1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/tools/templates/template.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,30 @@
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
table.pre td.lines {
vertical-align: top;
}
pre.fssnip code[lang=batchfile],
pre.fssnip code[lang=msh] {
display: inline-block;
white-space: pre-wrap; /* CSS 3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
word-break: keep-all;
padding-left: 2em;
text-indent: -2em;
}
</style>
<script type="text/javascript">
$(function() {
$("code[lang='batchfile'], code[lang='msh']").each(function() {
$(this).html($(this).html().replace(/ &lt;/g, "&nbsp;&lt;"))
})
})
</script>
</head>
<body>
<div class="container">
Expand Down

0 comments on commit 9309eb1

Please sign in to comment.