The use case of pygments.util.get_int_opt is to retrieve an integer option from a dictionary or return a default value. It is often used in Pygments to parse user-specified options.#python#pygments#get_int_opt
Further work on the InputField, getting close to being "satisfied" with it.
It currently uses `ptg.highlight_python` for a "syntax highlight" style, but when used as a proper code-editor, one would probably want a multi-purpose lexer like #Pygments.
Fiddling with a custom ptpython color scheme for a new conda env seems like a waste of time, but it's proven to be a good bellwether for when something is not quite right. #python#pygments
#Pygments, thanks to @birkenfeld and others, is a #Python tool for code highlighting, supporting an amazing array of languages ("lexers"). Useful, mature, and trusted. pygments.org
Yes! Successfully integrated a #markdown editor with code highlight support into #wagtailcms, using #pygments and #simpleMDE. Really nice package with server-side rendering, so keeps the frontend a little lighter in terms of #js ;)
#django#python
Spent almost 2 hours writing custom #CSS
for #pygments to make code snippets in my blog page look like the 𝙘𝙖𝙧𝙗𝙤𝙣-𝙣𝙤𝙬-𝙨𝙝 image.
It' s totally worth it.🎯😎
Here is the result.