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?
- The topic ‘Support Form Code/Pre CSS Request’ is closed to new replies.