Jump to content




Inline code tag


4 replies to this topic

#1 Lemmmy

  • Members
  • 218 posts

Posted 21 February 2016 - 09:50 PM

It would be neat if the forum had a simple inline code tag, perhaps something like [inline]os.shutdown()[/inline] or [inlinecode] or similar names. This would allow someone to type a small code block, like a method name, without bloating the post with a whole code box.

Simply because typing
os.shutdown()
in its own block is pretty ugly.

It could look a little like this:

Posted Image

The CSS for the block on this forum could be:

background-color: #f7f7f7;
padding: 0.25em 0.5em;
font-family: monospace;


#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationOverwatch

Posted 21 February 2016 - 11:51 PM

Unfortunately, the forum runs prebuilt software by IP.board (see the bottom right of any page).

I don't think the staff want to / are able to modify much.

Edited by HPWebcamAble, 21 February 2016 - 11:51 PM.


#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 6,338 posts
  • LocationTasmania (AU)

Posted 22 February 2016 - 12:06 AM

In the meantime, you do have the option of simply changing your font; for example, if true then, and so on.

#4 Lemmmy

  • Members
  • 218 posts

Posted 22 February 2016 - 08:32 PM

View PostHPWebcamAble, on 21 February 2016 - 11:51 PM, said:

Unfortunately, the forum runs prebuilt software by IP.board (see the bottom right of any page).

I don't think the staff want to / are able to modify much.

its not hard to modify

View PostBomb Bloke, on 22 February 2016 - 12:06 AM, said:

In the meantime, you do have the option of simply changing your font; for example, if true then, and so on.

yeah that's what i've been rolling with for now

#5 hermanoid

  • Members
  • 15 posts
  • LocationMicroscopic Village in Nebraska.

Posted 11 January 2017 - 03:29 AM

This could be considered the awakening of a stale thread, but I came across this recently and figured I might as well share a possible tool for anyone who really really want inline highlighting.

Online tools like http://hilite.me/ provide a way to automatically perform rudimentary highlighting. They output to HTML, which can't be used, but their output previews can be copied from and inserted into the page. Granted, this method is time-consuming, and hilite.me in particular has fairly poor highlighting, so it'd likely be faster just to do the highlighting yourself.

I hope this helps out!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users