Giter VIP home page Giter VIP logo

Comments (7)

techee avatar techee commented on August 24, 2024

It works - I've just added semantic_tokens_type_style to the config file, disabled by default, check the global config file for details.

The only problem is that it cannot make the types bold unfortunately. So I prefer highlighting using keywords for C/C++ but using indicators may be the only option for lexers not supporting keyword type highlighting (unfortunately neither python nor go support semantic tokens so I couldn't test with these).

from geany-lsp.

elextr avatar elextr commented on August 24, 2024

Ok, colours types anyway, will see over time how accurate it is.

from geany-lsp.

elextr avatar elextr commented on August 24, 2024

Seems to work :-)

The only problem is that it cannot make the types bold unfortunately.

Maybe Neil will accept a well written patch later.

from geany-lsp.

techee avatar techee commented on August 24, 2024

Maybe Neil will accept a well written patch later.

Not possible it seems:

https://sourceforge.net/p/scintilla/feature-requests/1505/

from geany-lsp.

elextr avatar elextr commented on August 24, 2024

BOLD does not change the width of proper monospace fonts, look at any type in Geany's default style.
Its possible broken fonts using fake bold will change, and non-monospaced I guess.
Anyway, ok, fonts can't be bold, time to change the default style in Geany 😁
Vscode default theme doesn't bold anything either so I guess its possible to do a usable theme non-bolding, but not so good for the colour challenged.

from geany-lsp.

techee avatar techee commented on August 24, 2024

BOLD does not change the width of proper monospace fonts, look at any type in Geany's default style.

Try installing SciTE. By default it doesn't use monospaced fonts and I suspect that this is how Neil uses it and Scintilla has to support that. This was always the first thing I had to change when I was using SciTE :-)

from geany-lsp.

elextr avatar elextr commented on August 24, 2024

Silly ideas young folks have today, programming in non-monospace, whatever is the world coming to [end grumpy olde guy rant]

I can understand Neil's point, the indicators don't re-run layout, so bold (or any other thing that changes layout) can't be used, and I expect its not even possible to know if layout needs to be re-run until after layout has been re-run. :-S

Anyhow so far colours seem to work, so we will just have to live without bold.

from geany-lsp.

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.