in reply to Re: Change default style sheet: add line numbers (code)
in thread Change default style sheet: add line numbers
Certainly! In the Display Settings page, the Code Listing Settings box has a field called "Code Prefix". In that box I have "<b><font color="red">&01;</font></b></p> ". I like the line numbers to stand out, so I put 'em in red. The &01; bit tells PM to "put line number here".
Just in case anyone is interested (and for future reference), some other settings I'm using are:
input[name="sexisgreat"] { position: fixed; top: 0px; left: 0px; z-index:1; padding: 5px; border: 4px solid red; }
div.readmore { background-color: inherit; padding-left: 4px; border-left-width: 5px; border-left-color: #00ff00; border-left-style: solid; margin-left: -9px; }
input[name="viewedNewNodes"] { position: fixed; top: 0px; left: 0px; z-index:1; padding: 5px; border: 4px solid green; }
pmsig { background: #ff4040; }
pre { white-space: pre-wrap; }
.user-533863 { background: #CCFFCC; font-weight: bold } .user-###### { background: #FFCCCC; }
None of this stuff is original, I've heard references on the chatterbox or noticed interesting nodes that provided these tips. I used to use a code formatter/syntax colorizer like the one tobyink references, but I abandoned that a few years ago when it went wonky on me and made page rendering take forever and a day.
Update: A few formatting tweaks I didn't notice before I clicked "create".
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|