Git Product home page Git Product logo

Comments (8)

Antoine38660 avatar Antoine38660 commented on July 29, 2024 1

Hey, just tried your app for the first time today : very nice !
The first improvement I was thinking about was Syntax Highlighting :)

I'll try to integrate CodeMirror, I'll let you know if I have some trouble or anything else.

from git-point.

 avatar commented on July 29, 2024

Could use a webview and make use of the excellent CodeMirror library πŸ‘

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Thank you so much @callodacity. I've never heard of CodeMirror before and it looks promising!!

If anybody wants to take a stab at this - don't hesitate to let us know :)

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Thank you I'm glad you liked it :)

Yes please don't hesitate to let me know how it's coming along at anytime, will always be here to help.

from git-point.

Antoine38660 avatar Antoine38660 commented on July 29, 2024

Some news: πŸ˜ƒ

I tried today to integrate CodeMirror inside a ReactNative WebView. I think it's a bit complicated and will not be easy as we think.

After some search, I found this lib : react-native-syntax-highlighter.
As it's my first experience with ReactNative, I prefer to use this one. What do you think about it @housseindjirdeh ?

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Cheers thanks so much @Antoine38660 - yes that looks promising! More than happy to give that a go and see how it turns out πŸ˜„

Appreciate you taking the time to look into using CodeMirror as well!

from git-point.

Antoine38660 avatar Antoine38660 commented on July 29, 2024

This is it : πŸ˜„
Screenshot of some syntax highlighting

One last thing before I'll be able to make the PR: I have some trouble with scrolling vertically inside the code viewer, do you have some tips or advices? (I already tried to add another ScrollView).

Edit:
As you can see, horizontal scroll is ok but vertical one isn't...
scroll-example.gif
Vertical scrolling works only if you do it from the extreme left part of the screen.

Update2: Finally fixed this one πŸ˜ƒ

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Cheers appreciate all the details and everything, I'm so glad you managed to fix it :)

from git-point.

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.