thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 303 forks source link

How to import a sublime/textmate theme #95

Open fanmanpro opened 7 years ago

fanmanpro commented 7 years ago

I'm able to import a theme directly into Ace. But when I try do the same with brace, it doesn't seem to pick up the theme and I get a theme-<themename>.js 404 error in my browser.

Is importing a custom theme supported? Can a get a list of instructions on how go about import and theme into brace?

Regards

danieltodonnell commented 5 years ago

Yes, I came here for the exact same reason. I want to define my own theme and reference it.

Even have a "bare-bones" theme that I can extend with css in the application would be close-to-ideal.

Example of my implementation below: <AceEditor readOnly showGutter={false} className="json-display" theme="<CUSTOM THEME HERE>" mode="javascript" name="data" width="100%" tabSize={2} showPrintMargin={false} maxLines={Infinity} {...props} />