Suggestion Introducing additional formatting BB Code tags

Discussion in 'Client & Site Suggestions' started by Tyrone, Nov 22, 2015.

  1. The suggested tags are:
    1. Horizontal Rule
    2. Subcode
    Demonstrated using SnackOverflow:

    [​IMG]

    This sort of code would be generated using the following code:

    Code (Text):
    1. Horizontal bar:
    2. [hr]
    3. Regular text [subcode]Subcode text[/subcode] Regular text
    ---

    The horizontal rule would used to separate subtopics in a more concise manner. As I have just attempted to do with three consecutive dashes.

    The suggested way would be to do:

    Code (Text):
    1. [hr]
    Quite simply put, this adds a horizontal rule.

    ---

    The subcode is primarily useful when referring to names of members or classes in aforementioned code. For example:

    Code (Text):
    1. private int foo = 5;
    2. private final int bar = 5;
    Mentioning of the names foo and bar in terms of the code would be more clearly defined through a subcode tag as opposed to italics. Even more so if you like using italics to portray sarcasm or emphasis. This could also be done as simply as replacing the [subcode] opening tag with:

    Code (Text):
    1.  [font=Courier New]
    and the subcode closing tag with:

    Code (Text):
    1. [/font]
    Although, I am unsure of any conflicts this might bring. However, a more 'full' approach would be to perform separate styling (if possible) as the SnackOverflow example has done. This makes the intent even clearer.

    The suggested way would of course be:

    Code (Text):
    1. [subcode]text[/subcode]
    ---

    Hopefully these stick, as they can bring along better formatting for longer and more in-depth posts.

    Thanks,

    ~Funky T
     
    Savior likes this.

Share This Page

Loading...