Is it possible to write code blocks with syntax highlighting in WordPress?

EDIT: I mean in WordPress posts
————————————–

I’m using Classic Editor and there doesn’t seem to be even basic support for code blocks to the point that leading white space is even ignored hence cannot even add proper indentation to the code examples.

Suddenly regretting not building this website with Statamic *sad emoji*

2 Comments
  1. There used to be a code syntax highlighter plugin for WordPress. Not sure if it’s still maintained.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer