Jump to content

Welcome to ExtremeHW

Welcome to ExtremeHW, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of ExtremeHW by signing in or creating an account.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
  • Take advantage of site exclusive features.

Inline Code in the Editor


Recommended Posts

Is it possible to enable inline code in the editor on this platform?


Inline code really cleans up posts that have multiple commands.  Here's an example from another site compared to the code blocks in our current editor.


Inline Code Example:



Using Code Blocks:

Here's a quick example. Adjust the paths as necessary for how you have your other instances set up.

$ taskset -c 3-7 /usr/bin/boinc --daemon --allow_multiple_clients --gui_rpc_port 31422 --dir ~/boinc2/

That will launch your second instance pinning it to cores 3-7. To check that it worked you can look at htop and also pick one of the pid's from the second instance and check it with taskset.

$ taskset -cp yourPID

That should return:

pid yourPID current affinity list: 3-7


Link to comment
Share on other sites



I have installed a new code plugin. Please can you click on the far right icon on the editor (Desktop only), however please ensure you are not using the Dark Theme as it needs to be adjusted to work correctly. Let me know if this works for you and I will see if we can sort it for Dark Mode. 




Link to comment
Share on other sites

The input for this looks more or less like the current code block, but it doesn't appear to have a background behind the code sections.  I took a look at the plugin, and I don't think it's quite what I was asking about.  The code blocks that we had before worked well, it was really more of a formatting issue.


With inline code only the portion of a sentance or paragraph is highlighted, rather than an entire block.


In markdown, words surrounded by a single backtick will be highlighted like the screenshot I posted a above, and triple backticks (or four preceeding spaces depending on the the flavor of markdown) will render a code block like what we had with the code <> flag.  Example: https://www.freecodecamp.org/news/how-to-format-code-in-markdown/


It really isn't a big deal, and what we had before definitely worked fine in standard and dark modes.  No need to waste your time or dev time on something that really isn't used that often here. 

  • Thanks 1
Link to comment
Share on other sites

Thanks for the feedback. What do you mean by "The code blocks we had before" ? Did I miss something ?


In any case, there are off the shelf plugins for the editor, so no need for custom dev. Will be a case of finding one that works well for the intended purpose. 


If you have any free time, feel free to look through this list :


Hundreds of features. Create content using multiple features available in CKEditor 4 thanks...


Just note if you do find something it has to be compatible with editor version 4.16.2 


I will also look again tomorrow, feel free to beat me to it haha.


Link to comment
Share on other sites

8 hours ago, tictoc said:

 We did have a button for code blocks with syntax highlighting, and it worked in both light and dark modes.  I think the button was next to the justify buttons or maybe next to the emoji button it looked like this: <>

How long ago ? I had something on yesterday that I thought did not work, so I took it off lol.

6 hours ago, Diffident said:

Discourse uses Markdown..... The quote function in Markdown is really nice too.


If anyone wants to learn Markdown, here is a Tutorial.

Im not 100% sure that could be used here.

Link to comment
Share on other sites

11 minutes ago, tictoc said:


It had  been in the editor since the restart of the site, and I used it when I made the OP


Ok, so I have put back what holds true to the symbol you posted, give it a go ? 

Link to comment
Share on other sites


3 hours ago, ENTERPRISE said:


Ok, so I have put back what holds true to the symbol you posted, give it a go ? 

I think you already noticed this, but I don't see the button in the editor. 



I was on my phone for that test.  The code snippet button is visible when I'm not on mobile. 

Edited by tictoc
Link to comment
Share on other sites

I am holding fire at the moment I have someone looking into this as it seems something is stopping the plugin from formatting things correctly.  More on this as soon as I have news.

  • Thanks 1
Link to comment
Share on other sites

Ok so, the fact is we have the best code insertion we are going to get at this point. I have restored the default code functionality to the editor as per the <> symbol.

  • Thanks 1
Link to comment
Share on other sites

6 hours ago, tictoc said:

Thanks E.  I was offline for the last week, and wasn't able to follow up.


What we have certainly works, and thanks again for trying a few different options. 👍  



No problems 🙂

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

This Website may place and access certain Cookies on your computer. ExtremeHW uses Cookies to improve your experience of using the Website and to improve our range of products and services. ExtremeHW has carefully chosen these Cookies and has taken steps to ensure that your privacy is protected and respected at all times. All Cookies used by this Website are used in accordance with current UK and EU Cookie Law. For more information please see our Privacy Policy