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

  • SEARCH
  • Home
  • 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 6227159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:09:57+00:00 2026-05-24T09:09:57+00:00

So anyways, I’m trying to implement custom syntax highlighting into a Scintilla control in

  • 0

So anyways, I’m trying to implement custom syntax highlighting into a Scintilla control in Visual C#.NET.

I’ve been told do this through an XML file. I have named it “ScintillaNET.xml” and placed it in the debug bin for my project.

In the Form_Load, I set its language to batch (which is correct), and in the properties I specify the location of the file.

The code I have in the XML file is:

<?xml version="1.0" encoding="utf-8"?>

<ScintillaNET>

    <!-- Set up the language, style, and lexer for batch -->
    <Language Name="batch">

        <!-- Lexer -->
        <Lexer StreamCommentPrefix="{ " StreamCommentSuffix=" }">
            <Keywords List="0">var</Keywords>
        </Lexer>

        <!-- Style -->
        <Styles>
            <Sytle Name="CHARACTER" ForeColor="Black" BackColor="Red"/>
        </Styles>

        <!-- Other Settings -->
        <Indentation TabWidth="2" UseTabs="false"/>

    </Language>

</ScintillaNET>

Unfortunately, that doesn’t seem to work… When I run my program, nothing happens in Scintilla.

My main goal for the custom syntax highlighting is nothing complicated.

I just want to be able to:
Choose the words to be highlighted.
Choose the color to have them highlighted/colored in.

How do I do this? What’s wrong with my code?

(and if anyone has a quick tutorial on how to do it, that would be appreciated)

  • 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-24T09:09:59+00:00Added an answer on May 24, 2026 at 9:09 am

    I’ve tested your xml file in my machine. A windows form app with ScintillaNet Control and with your xml is working fine.

    enter image description here

    Make sure you do following:

    1. Your system “path” includes the directory where SciLexer.dll is located
    2. In ConfigrationManager property of ScintillaNet Control. Set the CustomLocation property = ScintillaNET.xml
    3. In ConfigrationManager property of ScintillaNet Control. Language property = batch.

    references:

    (Installation) http://scintillanet.codeplex.com/wikipage?title=Installation&referringTitle=Documentation

    (How do I use my own configuration files?) http://scintillanet.codeplex.com/wikipage?title=HowToCustomConfig&referringTitle=Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be a n00b topic but, anyways, I have been having a rather
I've been having this problem for awhile now. Anyways, given this code: <table> <tr>
Kinda long title, but anyways... I've been looking at these examples, specifically on the
This is no doubt another noobish question, but I'll ask it anyways: I have
This seems very basic and I must be missing something, but here goes anyways...
ok I know that this should be simple... anyways say: line = $W5M5A,100527,142500,730301c44892fd1c,2,686.5 4,333.96,0,0,28.6,123,75,-0.4,1.4*49
Disclaimer: super new to rails. I'm using Rails 3.2 Anyways, I'm trying to create
I am creating a wpf application where I am using a webbrowser control. anyways
I've currently noticed that many people start using this model very often. Anyways, I
I'm using Python 3.1, if that helps. Anyways, I'm trying to get the contents

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.