by wkitty42 » Sun Aug 22, 2021 1:48 pm
this phpBB does not have anything in place for inline code like you are looking for... can it be done? sure, if the admins want to add it... we added it to a phpBB forum i admin/moderate after being asked and presented with a fair discussion... it has made some things easier but it really isn't needed... code blocks work just fine, for the most part...
FWIW: here's what we use... we call it "ilms" which stands for "InLine MonoSpace font"... someone with admin rights on this forum would need to add a new BBCode (located on the Posting tab of the Administration Control Panel) and place this or similar code in the definition fields of the new BBCode...
BBCode Usage:
- Code: Select all
[ilms]{TEXT}[/ilms]
HTML Replacement:
- Code: Select all
<code style="font-family: Monaco, 'Andale Mono', 'Courier New', Courier, monospace; font-size: 0.9em; font-style: normal; line-height: 1.3em; background: #FFF; border: 1px solid #C9D2D8; padding: 0 3px; color: #2E8B57; display: inline;">{TEXT}</code>
Help Line Text:
- Code: Select all
Inline monospace font
Display on Posting Page: checked
Sample:
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."