View Poll Results: Do you think this feature is good and should be implemented?

Voters
1. You may not vote on this poll
  • Yes

    1 100.00%
  • No

    0 0%
Results 1 to 5 of 5

Thread: BBcode for posting inline code like stackoverflow

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Post BBcode for posting inline code like stackoverflow

    Hi,

    Sometimes, we might need to highlight the some piece of code that we type in our response(apart from the actual code snippet). So in that case, wouldn't it be useful if make a bbcode available for inline code?

    Here's a screenshot of what am suggesting:



    The CSS code I used:
    HTML Code:
    span.inline-code{
      background: rgb(119, 119, 119);
      padding: 0 5px;
      color: white;
      font-family: 'Courier New';
      border: 1px solid rgb(82, 82, 82);
    }
    You could setup a BBCODE so that it will be replaced with <span class="inline-code">xxxxx</span>

    What do you think?

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: BBcode for posting inline code like stackoverflow

    do you mean like this? span.inline-code { more text here

    If so, there are TT tags:
    do you mean like this? [tt] span.inline-code{ [/tt] more text here

  3. #3

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: BBcode for posting inline code like stackoverflow

    Thanks si

    That seems to be cool. But I think it would be better if it could have a background or some embossing to get attention that it's a code line.

    Also, I would suggest a help link somewhere above the Reply Box, which could open up in a popup window explaining these useful BBcodes.

    Last edited by akhileshbc; May 8th, 2015 at 01:32 PM.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,398

    Re: BBcode for posting inline code like stackoverflow

    That picture was on my thread
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  5. #5

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: BBcode for posting inline code like stackoverflow

    Just made a Chrome extension including this feature.

    Try it out: http://www.vbforums.com/showthread.p...fies-the-looks

    I hope someone will find it useful.


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width