Giter Site home page Giter Site logo

SQL Lexer Style Question about scintillanet HOT 5 CLOSED

pjlasl avatar pjlasl commented on September 13, 2024
SQL Lexer Style Question

from scintillanet.

Comments (5)

pjlasl avatar pjlasl commented on September 13, 2024

OK...I figured out that I should be using Style.SQL.Identifier. Setting that to blue worked.

from scintillanet.

jacobslusser avatar jacobslusser commented on September 13, 2024

The default style would be anything that doesn't get styled/classified in some other way. Most lexers are pretty comprehensive and will style nearly everything in the document in some way, leaving very little text in the default style. Most often this means the only unstyled/default text left by the lexer is whitespace.

Try making whitespace visible and see if that is where your default style is going:

scintilla.ViewWhitespace = WhitespaceMode.VisibleAlways;

from scintillanet.

pjlasl avatar pjlasl commented on September 13, 2024

I used the style.sql.identifier and it worked properly. I did have a question about style.sql.user1.... How do I get custom words like (COUNT, MAX) into that list so that I can use a different color on those?

from scintillanet.

jacobslusser avatar jacobslusser commented on September 13, 2024

See the wiki article Automatic Syntax Highlighting. It contains a section on setting keywords. Following those instructions you would arrive at the possible keyword lists supported by the SQL lexer:

"Keywords",
"Database Objects",
"PLDoc",
"SQL*Plus",
"User Keywords 1",
"User Keywords 2",
"User Keywords 3",
"User Keywords 4"

i.e. keywords in list index 4 ("User Keywords 1") would be styled by Style.Sql.User1, etc...

from scintillanet.

pjlasl avatar pjlasl commented on September 13, 2024

Thank you. I saw the article and it worked great!

from scintillanet.

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.