Sep-11-2020, 09:00 PM
(This post was last modified: Sep-11-2020, 09:48 PM by Drone4four.)
I'm pretty sure this is the wrong sub-forum to ask, but I don't know where else to ask it. So I'll just ask it. Maybe a moderator can move this thread to the correct sub-forum.
Take a look at this web page for Derek Banas' terrific Django tutorial here. If you scroll down, there is a code block. I'm writing my own rudimentary Django CMS and would like to implement a similar 'block code' or 'code snippet' feature for my blog posts which showcases some basic Python algorithms with syntax highlighting and shows line numbers. My question for all of you is: What do you call that feature? If I had a name for it I am sure I could find basic boilerplate to display code blocks on my web pages.
I Googled: 'code snippets blog' which turned up a few plugins for Wordpress and Blogger but I can't find anything for Django. I Googled 'code snippets django' which turned up the https://djangosnippets.org/ website and GitHub repo, which is not what I want at all.
Take a look at this web page for Derek Banas' terrific Django tutorial here. If you scroll down, there is a code block. I'm writing my own rudimentary Django CMS and would like to implement a similar 'block code' or 'code snippet' feature for my blog posts which showcases some basic Python algorithms with syntax highlighting and shows line numbers. My question for all of you is: What do you call that feature? If I had a name for it I am sure I could find basic boilerplate to display code blocks on my web pages.
I Googled: 'code snippets blog' which turned up a few plugins for Wordpress and Blogger but I can't find anything for Django. I Googled 'code snippets django' which turned up the https://djangosnippets.org/ website and GitHub repo, which is not what I want at all.