Jump to content

_SciLexer with own languages


Recommended Posts

Hello there!

I've got three question about the _SciLexer:

1st: I want to highlight my own words, for example "tree" gets tree

2nd: I want to highlight everything in brackets, for exapmle "(hello)" gets (hello)

3rt: I want to higlight everything after an Symbol, for example "tree & apple" gets tree & apple

How would I do that?

Thank you, for all replies >_<

Have a nice week!

Matthias

Link to comment
Share on other sites

  • Developers

Hello there!

I've got three question about the _SciLexer:

1st: I want to highlight my own words, for example "tree" gets tree

2nd: I want to highlight everything in brackets, for exapmle "(hello)" gets (hello)

3rt: I want to higlight everything after an Symbol, for example "tree & apple" gets tree & apple

How would I do that?

Thank you, for all replies >_<

Have a nice week!

Matthias

Matthias,

SciLexer.dll works with Language definitions. All information can be found on the SciTE/Scintilla Website on how things are working.

Creating your own lexer language is not a trivial thing but that is also described how that is done.

It normally better to select a supported Lexer language and see if you can adapt that to your own needs.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

It's possible. Open Scite, then select Options\Open au3.keywords.properties

If you add to this string:

autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid \

"testing" to take this:

autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid testing \

Restart Scite.

When you type word "testing" in Scite you will see testing

EDIT: and, of course, you will get an error.

I only show you some direction..

Edited by Vitas

_____________________________________________________________________________

Link to comment
Share on other sites

  • Developers

It's possible. Open Scite, then select Options\Open au3.keywords.properties

If you add to this string:

autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid \

"testing" to take this:

autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid testing \

Restart Scite.

When you type word "testing" in Scite you will see testing

EDIT: and, of course, you will get an error.

I only show you some direction..

I would suggest using a fileextension that you don't use, not au3, and modify that config file.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hello again!

Thanks for the replies!

Now, I'm not having much time, but tomorrow I will do test that.

If you meant creating Lexers with that one here: http://www.scintilla.org/Lexer.txt

I saw it, but how to do that in AutoIt? I mean, that is a different language, how to "import" it to AutoIt?

Thanks again for all replies!

Have a nice day,

Matthias

Edited by MatthiasG
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...