Comments (5)
It's mentioned in the README that you might need to import some CSS https://github.com/satya164/react-simple-code-editor/blob/master/README.md#usage
from react-simple-code-editor.
@satya164 So show the whole working demo, with any syntax theme really. What does a half ass demo do for anyone?
And actually importing prism theme doesn't do the job because the element structure of code editor is different.
And here I am wondering how do I apply css to pre or textarea. I don't think a single line instruction of “you might need to import some CSS ” will do the trick.
from react-simple-code-editor.
@FateRiddle maybe you'd find the full ass demo in the example folder if you spent 2 minutes looking in the project instead of being rude on GitHub issues.
from react-simple-code-editor.
@satya164 I was rude because I find your answer to a legit question passively aggressive and not helpful.
People using this editor may not want to style it all by themselves but also prefer a wide range of theme choices. So a custom styled example might not be a perfect answer.
from react-simple-code-editor.
@FateRiddle how is linking to the docs passive aggressive? it's an open source project and I work on it on my free time. I don't have time to write detailed answer to every github issue. if my answer is not satisfying to you, feel free to send PR to improve the README or answer in issues. anyway, that doesn't mean you should be rude.
regardless, this library doesn't do syntax highlighting. it only renders a text area over your syntax highlighted code. you can use prism or any other library you want. how you make syntax highlighting work is outside the scope of this library. if you're setting up prism, you need to follow prism docs for that, or any docs of the lib you're using. this is already mentioned in README. but if it's not clear, then PR welcome to make it more clearer.
from react-simple-code-editor.
Related Issues (20)
- a11y: "Form control element <textarea> has no associated label" HOT 1
- demo is broken HOT 2
- Incorrect import with ESBuild bundling (must use <Editor.default ... />) HOT 1
- styles.root.fontFamily inconsistent behavior
- pasting code inside Editor, breaks the component
- Token highlight issue in Google Chrome HOT 3
- Is it possible to unindent with Shift + Tab? HOT 1
- How can we add tooltip on highlight position?
- Doesn't it support multiple languages? HOT 2
- Getting "global is not defined" after configuring supabase
- highlight.js theme import doesn't work for some reason
- Editor not working as expected with android phone which changed text size
- How to get the code area resizable (like a textarea)? HOT 3
- FR: Autocomplete support
- Editor may not work well in all sizes
- Uncaught ReferenceError: global is not defined | React Typescript HOT 7
- Long text renders incorrectly HOT 4
- Cannot read property 'rest' of undefined HOT 1
- readonly HOT 2
- [Security] Workflow main.yaml is using vulnerable action actions/checkout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-simple-code-editor.