Styling codeblocks generated by DataViewJS

What I’m trying to do

I am generating a custom code block with dataviewjs. Example:

```dataviewjs
dv.paragraph('~~~\n'+'codeblock example'+\n~~~')
```

I have the plugin “Code Styler” which creates additional styling for codeblocks such as adding line numbers, but it does not apply this styling to codeblocks generated by dataviewjs dv.paragraph. I’ve tried playing around with other plugins but I have not been able to find a solution. Dataview generated codeblocks will still get styled by the theme, but I can’t find a way to style it with codeblock styling plugins.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.