It's always quite a struggle to keep people doing it correctly on CSS-Tricks, so I'd love if there was a plugin to make it more foolproof.
The overall idea: make it so if you use <code> tags, it will come out perfectly.
| <?php | |
| /** | |
| * This little class records how long it takes each WordPress action or filter | |
| * to execute which gives a good indicator of what hooks are being slow. | |
| * You can then debug those hooks to see what hooked functions are causing problems. | |
| * | |
| * This class does NOT time the core WordPress code that is being run between hooks. | |
| * You could use similar code to this that doesn't have an end processor to do that. | |
| * |
| #!/usr/bin/ruby | |
| # | |
| # The MIT License (MIT) | |
| # Copyright (c) 2013 Mark Jaquith | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| #!/bin/bash | |
| ########################## | |
| ## Check if run as root ## | |
| ########################## | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Table Display test</title> | |
| <style> | |
| @media screen and (min-width: 30em) { | |
| body { | |
| display: table; | |
| caption-side: top; | |
| } |
It's always quite a struggle to keep people doing it correctly on CSS-Tricks, so I'd love if there was a plugin to make it more foolproof.
The overall idea: make it so if you use <code> tags, it will come out perfectly.