Sha256: 2cf2c0c61e23afe4a76dfca497a05d0ccef4a12a8e0f6c095f673f5ad7a3fafc
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
// there should be a button with id='pre_toggle_linewrap' $(document).ready(function() { // add toggle linewrap functionality pre_style = false; $('#pre_toggle_linewrap').click(function() { if (pre_style) { $("pre").css({"white-space":"pre-wrap", "word-wrap":"break-word"}); pre_style = false; } else { $("pre").css({"white-space":"pre", "word-wrap":"initial"}); pre_style = true; } });//end toggle line wrap });
Version data entries
4 entries across 4 versions & 1 rubygems