Support » Plugins » Support Form Code/Pre CSS Request

  • Trying to make a plugin that requires placing code in templates can be difficult without decent instructions, and it’s difficult to do that if code isn’t styled differently both inline and in blocks. Stackoverflow does a great job with this, coloring inline the same as they do with blocks of code. I used Stylish to mockup a nicer looking code view for plugin pages.

    This is a screenshot of the current visual appearance:

    http://www.andymercer.net/hosted/codebg2.png

    This is of the appearance with some CSS tweaks:

    http://www.andymercer.net/hosted/codebg1.png

    It’s much easier to see inline code blocks this way, and it only requires a few lines of CSS, which are:

    pre {

    border-color:rgb(150,150,150);

    background-color:rgb(230,230,230);

    }

    code {

    padding:2px 5px;

    background-color:rgb(220,220,220);

    }

    pre code {

    padding:0;

    background-color:transparent;

    }

    What are the thoughts on adding this?

Viewing 1 replies (of 1 total)
  • Thread Starter Andy Mercer

    (@kelderic)

    Additionally, plugin descriptions accept blocks of code via the 4 space rule of Markup. It appears that these forums do not. It would be great to add that capability, along with Previews (since we don’t have the ability to Edit), and the ability to use the <img> tag.

Viewing 1 replies (of 1 total)
  • The topic ‘Support Form Code/Pre CSS Request’ is closed to new replies.