Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
code

6 Articles
{
,

}
Image
Direct link to the article Let’s Create a Tiny Programming Language
code

Let’s Create a Tiny Programming Language

By now, you are probably familiar with one or more programming languages. But have you ever wondered how you could create your own programming language? And by that, I mean:

A programming language is any set of rules that convert

…
Image
Md Shuvo on May 10, 2022 Updated on May 11, 2022
Image
Direct link to the article Code blocks, but better
code pre WordPress blocks

Code blocks, but better

Pedro Duarte made a wishlist for styled code blocks in blog posts and documentation, then hand-rolls a perfect solution for that wishlist. For example, a feature to be able to highlight certain lines or words within the code block. The …

Image
Chris Coyier on Jun 1, 2021
Image
Direct link to the article Styling Code In and Out of Blocks
code

Styling Code In and Out of Blocks

There is a <code> tag in HTML. I literally just used it to wrap that tag in the previous sentence — so meta. It is an inline-by-default element that denotes any sort of code. It has default (user agent) styles …

Image
Chris Coyier on Jan 6, 2021
Image
Direct link to the article The Three Types of Code
code

The Three Types of Code

Every time I start a new project, I organize the code I’m looking at into three types, or categories if you like. And I think these types can be applied to any codebase, any language, any technology or open source …

Image
Robin Rendle on Feb 3, 2020
Image
Direct link to the article Angular, Autoprefixer, IE11, and CSS Grid Walk into a Bar…
build tool code

Angular, Autoprefixer, IE11, and CSS Grid Walk into a Bar…

I am attracted to the idea that you shouldn’t care how the code you author ends up in the browser. It’s already minified. It’s already gzipped. It’s already transmogrified (real word!) by things that polyfill it, things that convert it …

Image
Chris Coyier on Jan 18, 2019
Image
Direct link to the article Considerations for styling the `pre` tag
code pre

Considerations for styling the `pre` tag

You’ve probably used it. It’s that very special tag in HTML that allows for the white space within the tags to actually be honored. For example, four spaces will actually be four spaces! That’s unlike how HTML normally works, where …

Image
Chris Coyier on May 26, 2016 Updated on Jan 14, 2020

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top
Advertisement