A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/satya164/react-simple-code-editor/issues/56 below:

How do I use CSS prism themes? · Issue #56 · react-simple-code-editor/react-simple-code-editor · GitHub

Current behaviour

When I use vsc-dark-plus, I can make sure that all torkens have the proper color except for the background.

Expected behaviour

May this line be removed?

https://github.com/satya164/react-simple-code-editor/blob/73b57bf4d548257890f9ed0ee83ee37ec099b256/src/index.js#L625

Code sample
require('./prism-vsc-dark-plus.css')
export default function Editor(){
  return <SimpleEditor
				value={'<Button />'}
				highlight={highlight(isVueSFC ? 'html' : 'jsx')}
				// Padding should be passed via a prop (not CSS) for a proper
				// cursor position calculation
				padding={space[2]}
				// to make sure the css styles for prism are taken into account
				preClassName={'language-jsx'}
			/>
}
Screenshots (if applicable)

Sandbox

https://codesandbox.io/s/suspicious-flower-5rl8e

Your Environment software version react-simple-code-editor 0.11.0 react 16 npm or yarn yarn node 11 browser Firefox & Chrome

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4