Announcement

Collapse
No announcement yet.

BBcode for inline code snippets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • feldon23
    replied
    I forget if span tags allow borders. This would be pretty sweet:

    <span style="border: 1px solid #443300; background-color: #FFEFCF; padding: 2px;">{$stuff}</span>

    Leave a comment:


  • ChopSuey
    replied
    AdminCP > BBCodes > Add Custom BBCode????

    Leave a comment:


  • mcal
    replied
    Being a "noobe" please tell how, not "pretty easily". thats for the smart guys/girls :-)

    Leave a comment:


  • Colin F
    replied
    Neither the default package nor we on vb.com ever added something like this.

    You can add this on your own forum pretty easily though!

    Leave a comment:


  • mcal
    replied
    Noobe to Vb v4.... cms.microcal.ca, by the way, I'm Dave.
    Was there ever an answer to this as I need to do the same inline code.
    Have played with BBcode but guess bit dum as yet :-). Only in "sand box" for one week yet.

    Anybody done it yet ?

    thanks, really make life easier...

    Dave

    edit: like the code [snippet]

    Leave a comment:


  • simsim
    replied
    Originally posted by Dilly View Post
    Why not [snippet]
    That's neat. :thumbsup:

    Leave a comment:


  • Dilly
    replied
    Why not [snippet]

    Leave a comment:


  • simsim
    replied
    Originally posted by Colin F View Post
    I like the idea, but I'm not sure what tag we'd use, since [code] is already in use.
    [samp] or [inline_code]..

    Leave a comment:


  • Colin F
    replied
    I like the idea, but I'm not sure what tag we'd use, since [code] is already in use.

    Leave a comment:


  • simsim
    started a topic BBcode for inline code snippets

    BBcode for inline code snippets

    vBulletin has multiple BBcodes that deal with posting code snippets. But the problem is that they're all replaced by the HTML element <pre>, which has been styled to occupy its own space. However, it comes always a need to post small inline code snippets alongside other text, but if we used any of the pre-formatted BBcodes it takes its own space and breaks apart from other surrounding text.

    Now what I do if I want to insert some inline code is switching to the full editor mode & highlight these codes with font Courier New, which is both impractical & non-semantic.

    Can someone from the staff add some BBcode that is inline? It could replace either the HTML <code> or <samp> elements, both are inline-level elements.
    Last edited by simsim; Fri 7th Dec '07, 7:05am. Reason: Grrrammar..
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X