Board index Other Forum

How to write inline code ?

Questions about the forum itself, suggestions or issues with the forum software.

Do we need inline code à la Markdown on this forum ?

Yes
4
57%
No
1
14%
I don't know
2
29%
 
Total votes : 7

How to write inline code ?

Postby TheEagle » Sun Aug 22, 2021 1:01 pm

I am a user of StackOverflow since half a year now, and because that I am used to Markdown and it's inline code feature (At StackOverflow, there's no BBCode, they use Markdown). Code blocks can be created with
Code: Select all
This is some code
. But I want to have inline code. On other forums using BBCode one can use the [c] tag - but this is obviously not possible here. Am I just missing something, or can I really not have inline code on this forum ? If not, can someone please enable it ? I read there is some configuration option to disable / enable it.
Last edited by TheEagle on Sun Aug 22, 2021 5:33 pm, edited 1 time in total.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3414
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: How to write inline code ?

Postby Hooray » Sun Aug 22, 2021 1:02 pm

Use the code tags, 5th symbol from the right (above the edit box):

Code: Select all
[code]
my code goes here
[/code]
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How to write inline code ?

Postby TheEagle » Sun Aug 22, 2021 1:25 pm

@Hooray: This creates a code block. I want inline code, like here : https://gist.github.com/TheFGFSEagle/96 ... e37223846d
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3414
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: How to write inline code ?

Postby 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:
Image
"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."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Forum

Who is online

Users browsing this forum: No registered users and 4 guests

cron