![]() ![]() ![]() is the perfect element for that, as it naturally retains whitespace. Browser’s default stylesheets leave it as inline element, and I’d recommend you leave it that way so you can use it within sentences like I did in the last sentence.īut you’ll want to use a block-level element to wrap a block of code. I’d say it’s semantically correct to wrap any and all code in it. ![]() There is an element specifically for code. Here’s what you’ll need to do and think about to actually get publishing blocks of code. Yay! You’re a hero and I thank on behalf of myself an coders everywhere. So you’ve installed WordPress and want to blog about code. Originally published in February 2014, now updated/corrected/expanded. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |