Announcement

Collapse
No announcement yet.

BBcode for inline code snippets

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

  • 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..
    You're spending millions of dollars on a website?!

  • #2
    I like the idea, but I'm not sure what tag we'd use, since [code] is already in use.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      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]..
      You're spending millions of dollars on a website?!

      Comment


      • #4
        Why not [snippet]

        Comment


        • #5
          Originally posted by Dilly View Post
          Why not [snippet]
          That's neat. :thumbsup:
          You're spending millions of dollars on a website?!

          Comment


          • #6
            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]

            Comment


            • #7
              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!
              Best Regards
              Colin Frei

              Please don't contact me per PM.

              Comment


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

                Comment


                • #9
                  AdminCP > BBCodes > Add Custom BBCode????

                  Comment


                  • #10
                    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>

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X