[Another Forum Issue] Editing code blocks in the forum text box is pain
Wuerfel_21
Posts: 5,110
What it says in the title.
The text box uses a proportional font, writing snippets of code in it is basically impossible.
However, if one has a usersyle extension installed, applying the following to forums.parallax.com will make both the edit box and the "finished" code blocks use the PropTool font.
The text box uses a proportional font, writing snippets of code in it is basically impossible.
However, if one has a usersyle extension installed, applying the following to forums.parallax.com will make both the edit box and the "finished" code blocks use the PropTool font.
.MessageForm textarea,.DiscussionForm textarea { font-family: Parallax, monospace; font-size: 12pt; line-height: 1; } #Body pre { font-family: Parallax, monospace; font-size: 12pt; line-height: 1; }
Comments
Make code blocks dumb again.
Well... and being at it:
Please add an edit button for being able to correct stuff in personal messages. I've sent lots of garbled code and that could have been avoided if a preview and edit feature were added.
Parallax should fix the @ thing though before P2 comes out properly. It's quite embarassing.
How that happened to begin with, IDK. Surely everyone using the code block feature in this software would have noticed that it's broken.
Also, why is there no syntax highlighting?
I don't remember that many problems with the older forum software. Maybe that's just beginning al(c|z)heimer?
Then $THEY would need to additionally specify in which language the code is in. Like {code=simple-ide}...{/code} or such. That's really asking for far too much.
Let it be!
Just don't mention this again!
-Phil
Just look up.
Maybe your code just does not trigger them.
Ok.
Mine did.
Far too often.
I was told, that someone would look at it.
See the "return" lines of "test1" and "test2":
The font within the code blocks is fine, but the font in the editor box is proportional, so you can't properly write code in it, you always have to copy/paste to/from an external editor (unless you change the font). I just changed the code block font, too, for consistency.
Maybe also add the line "line-height: 1;" (or 1.1) to the code blocks, the line spacing is a bit much
Noted, thanks.
I ran out of time today, but will come back to this soon. About to fix the multi @ issue, and then can adjust the css a little bit if it looks right.
Thanks to everyone for raising this again. If there's any simple suggestions (like a css tweak), feel free to add them here and we can see if they are doable. And please shout if anything got broken by these updates
-Phil
Yayyy!
And thanks a lot!
@ thing should be fixed now.
Hopefully I can rely on you guys to let me know if you can break it
The other comments/ideas are all noted, and maybe next weekend or so we can find some moments to check them.
The editor still gives suggestions for them, oddly enough. @VonSzarvas
Feature unbroken.
- look like there's an edge case with certain usernames, but it doesn't seem to impact the code being rendered, so will leave that alone for a couple weeks. We are going to try update the forum version then, if our offline test site updates ok, and the handlers for the text formatting/rendering are a little different with the new version; so let's wait for that update now- unless anything really silly comes to light in the meantime.