MyBB Community Forums

Full Version: Inline Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Example:

{$something}

Demo:

Replace {$something} with {$something_else}

It would be good so we don't always have to format posts like this:

http://community.mybb.com/thread-110790-...#pid806081
Yes plz.
I'm all for this!
+1
I agree. but how should something like that be styled? Just have a different background?
(2011-12-31, 12:26 AM)Booher Wrote: [ -> ]I agree. but how should something like that be styled? Just have a different background?

<span class="inline_code">{1}</span>

.inline_code {
   font-family: Courier;
}

Would suffice for the default install.

<?php echo "Hello, world."; ?>
would a "script" like we use for lists work better? have an option for a Search and Replace code block that would prompt for the two sets of code and format accordingly? Have one for code and one for PHP
Yes! This would be a great change. It would make posts look a lot nicer, and lower the required amount of scrolling to get through several large posts in a thread (because of course, the next person quotes the gargantuan post).
You haven't got a chance for 1.6. It would mean splitting the code and PHP blocks and I ain't fancying that after what happened to the quotes.

You could always add a new MyCode.

[@]{$something}[/@]
Well, can we add a new MyCode then? Toungue
Pages: 1 2