Giter Club home page Giter Club logo

Comments (7)

desjarlais avatar desjarlais commented on July 18, 2024

I think the information you are looking for is here:

https://github.com/desjarlais/Scintilla.NET/wiki/Custom-Syntax-Highlighting

Does that help?

from scintilla.net.

Aghlara avatar Aghlara commented on July 18, 2024

Unfortunately not. my question is not how to write a custom style or parser. As you see in the image that part it is working fine. The issue is it highlights as I scroll or focus. I want the document style as I scroll without clicking and focusing.

nl-render

from scintilla.net.

desjarlais avatar desjarlais commented on July 18, 2024

I'll try to work on creating a sample to test, but doesn't the second section of the article discuss the scrolling aspect?

https://github.com/desjarlais/Scintilla.NET/wiki/Custom-Syntax-Highlighting#handling-the-styleneeded-event

from scintilla.net.

Aghlara avatar Aghlara commented on July 18, 2024

I'll recheck it again. Thanks for pointing that out.

from scintilla.net.

Aghlara avatar Aghlara commented on July 18, 2024

OK I tested it. By doing Style(Editor, Editor.GetEndStyled(), e.Position) that's the behaviour you see on the image.

My question is now, if there is a way to do it on more quicker basis, rather than a 2(ish) second delay?

from scintilla.net.

desjarlais avatar desjarlais commented on July 18, 2024

Just to make sure I'm understanding you, the scrolling is working as expected now but you see a 2 second delay?

from scintilla.net.

desjarlais avatar desjarlais commented on July 18, 2024

The only suggestion I would have is to kick off a background thread to re-style the remaining text after the currently visible text is finished. Closing for now, but if you need more information, re-open and we can discuss it further.

from scintilla.net.

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.