#Lexical and Code Blocks

4 messages · Page 1 of 1 (latest)

red junco
#

Hi! I am migrating a developer blog over to Payload, and a core part of the articles there are code blocks to show examples of various dev stuff.

I was thinking of doing this using a custom Block and adding it via the BlocksFeature, but unsure if this is the optimal way of going about it.

Wondering if anyone has built something similar and have some experiences/approaches to share?

On v3 btw. :)

obtuse ventureBOT
split ledge
#

custom block is the best way to do this IMO. Don't see any reason to build a custom feature for it

#

there's an example on how to do this + implement a language picker in our docs