I was deep in the site plumbing doing some prep work (shhh) and figured I'd try to fix our ugly code blocks. Not sure if I really made it better ... open to sugggestions.
I'm not sure the pink sits well against the grey in either example. Reducing the contrast between line colors is a solid idea but I think you've gone too close to 0.5 and you risk making the keywords etc. hard to pick out.
Good suggestions. Seems better now. I don't have control over line numbering, unfortunately. I could go through every text-color style and make them the same dark gray, but that's probably a lot of work.
Yeah I get the same, here on Windows/Chrome. Sorry there's not much I can do about it. Vanilla hasn't been a great host for us, and we have a plan for moving, but we're a bit hamstrung for a variety of reasons as far as actually making it happen.
Replies
I could go through every text-color style and make them the same dark gray, but that's probably a lot of work.
2. Paste some code.
3. Preview (looks OK)
4. Post Reply
If you want to copy stuff out of an existing codeblock and put it in a new codeblock in your reply, it seems to need an extra step:
import MaxPlus somethingHappened = False def doSomething(): global somethingHappened somethingHappened = True print "I sleep all night and I work all day!" def printAction(a): print "id ", a.Id print "button text ", a.ButtonText print "menu text ", a.MenuText print "description ", a.Description print "category ", a.Category print "checked ", a.Checked print "indeterminate ", a.Indeterminate print "visible ", a.Visible print "enabled ", a.Enabled print "dynamic ", a.Dynamic print "shortcut ", a.Shortcut action = MaxPlus.ActionFactory.Create( 'Do something', 'Python demo', doSomething) printAction(action) assert(not somethingHappened) action.Execute() assert(somethingHappened) action.Execute() assert(somethingHappened)
If you don't do that, it kind of barfs: