Giter VIP home page Giter VIP logo

Comments (5)

satya164 avatar satya164 commented on July 22, 2024 3

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.

FateRiddle avatar FateRiddle commented on July 22, 2024

@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.

satya164 avatar satya164 commented on July 22, 2024

@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.

FateRiddle avatar FateRiddle commented on July 22, 2024

@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.

satya164 avatar satya164 commented on July 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.