问题原文
原帖链接 · hanugm · CC BY-SA 4.0
I am placing a small code snippet in a WordPress.com web page. WordPress.com provides a "Code Block" option for formatting code.
Is there a way to add line numbers to the code in this code block?
已采纳解答
原帖链接 · Maximillian Laumeister · CC BY-SA 4.0
From what I can tell, it looks like WordPress.com's SyntaxHighlighter Code Block shows line numbers, whereas their Code Block does not. My understanding is that the SyntaxHighlighter Code Block is a fancier, more full-featured code block type that's built into WordPress.com.
See the SyntaxHighlighter Code Block documentation for more info:
https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
