Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6710113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:59:05+00:00 2026-05-26T07:59:05+00:00

I have installed DScintilla , Delphi VCL wrapper for Scintilla code editing component, but

  • 0

I have installed DScintilla, Delphi VCL wrapper for Scintilla code editing component, but I can’t find any basic example of how to use it.

Could you post some basic code example of syntax highlighting or a reference to code examples for it ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:59:05+00:00Added an answer on May 26, 2026 at 7:59 am

    Very interesting library but hard to say what exactly want you do with it.
    Here for instance is the example with some basic color settings for Pascal syntax highlighter. Note that you need to have the SciLexer.dll library in your project folder (or the one where the application looks for it).

    This library wrapper provides many features with meaningful names so the best I think would be to browse them by your own.

    uses
      DScintillaTypes, DScintilla;
    
    procedure TForm1.Button1Click(Sender: TObject);
    var
      Scintilla: TDScintilla;
    begin
      Scintilla := TDScintilla.Create(Self); // creating it dynamically, it's also available as a component, so you don't need to do this
      Scintilla.DllModule := 'SciLexer.dll'; // the syntax library
      Scintilla.Align := alClient;           // object alignment to the whole parent
      Scintilla.Parent := Self;              // setting up the parent
      Scintilla.SetLexer(SCLEX_PASCAL);      // and setting the syntax highlighter, see SCLEX_ types in DScintillaTypes.pas
    
      Scintilla.StyleSetBack(STYLE_DEFAULT, clBlack); // setting up the default background color
      Scintilla.StyleSetFore(SCE_PAS_DEFAULT, clWhite); // Pascal specific default fore color
      Scintilla.StyleSetBack(SCE_PAS_DEFAULT, clBlack); // Pascal specific default back color
      Scintilla.StyleSetFore(SCE_PAS_IDENTIFIER, clYellow); // Pascal specific identifier fore color
      Scintilla.StyleSetBack(SCE_PAS_IDENTIFIER, clBlack); // Pascal specific identifier back color
      Scintilla.StyleSetBold(SCE_PAS_IDENTIFIER, True); // Pascal specific identifier bold font style
      Scintilla.StyleSetUnderline(SCE_PAS_IDENTIFIER, True); // Pascal specific identifier underline font style
      Scintilla.StyleSetFore(SCE_PAS_COMMENT, RGB(243, 236, 255)); // etc.
      Scintilla.StyleSetBack(SCE_PAS_COMMENT, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_COMMENT2, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_COMMENT2, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_COMMENTLINE, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_COMMENTLINE, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_NUMBER, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_NUMBER, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_HEXNUMBER, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_HEXNUMBER, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_WORD, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_WORD, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_STRING, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_STRING, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_STRINGEOL, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_STRINGEOL, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_CHARACTER, RGB(243, 236, 255));
      Scintilla.StyleSetBack(SCE_PAS_CHARACTER, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_OPERATOR, clRed);
      Scintilla.StyleSetBack(SCE_PAS_OPERATOR, clBlack);
      Scintilla.StyleSetFore(SCE_PAS_ASM, clRed);
      Scintilla.StyleSetBack(SCE_PAS_ASM, clBlack);
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed usb driver, selected the android device's debugging mode but i can't
I have installed MinGW in Windows Vista, so I can use gcc but it
I have installed Delphi Prism and XNA Game Studio 3.0. I have managed to
I have installed mysql Query browser for creating tables/ views/ procedures (In Ubuntu) But
I have installed the below google tracking code in my site var _gaq =
I have installed SQL Server 2008 Express Edition, but by mistake I kept the
I have installed Visual Web Developer 2008, the .net framework 3.5 but when i
I have installed PHP 5.3.3 on my machine without pear. But now i want
I have installed xcode on my mac but I am annoyed that I have
I have installed RockMongo http://code.google.com/p/rock-php/ to manage my mongoDB database. This is installed in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.