Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ createHighlightStyle
Method
createHighlightStyle
src/lib/acode.js:154–158 ·
view source on GitHub ↗
(spec)
Source
from the content-addressed store, hash-verified
152
};
153
154
const
createHighlightStyle = (spec) => {
155
if
(!spec)
return
null;
156
if
(Array.isArray(spec))
return
cmLanguage.HighlightStyle.define(spec);
157
return
spec;
158
};
159
160
const
createTheme = ({
161
styles,
Callers
nothing calls this directly
Calls
1
define
Method · 0.80
Tested by
no test coverage detected