Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/encode/django-rest-framework
/ pygments_css
Function
pygments_css
rest_framework/compat.py:96–98 ·
view source on GitHub ↗
(style)
Source
from the content-addressed store, hash-verified
94
return
pygments.highlight(text, lexer, formatter)
95
96
def
pygments_css(style):
97
formatter = HtmlFormatter(style=style)
98
return
formatter.get_style_defs(
'.highlight'
)
99
100
except
ImportError:
101
pygments = None
Callers
1
get_context
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected