Sign in to follow this  
Followers 0
MatthiasG

_SciLexer with own languages

6 posts in this topic

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

Share this post


Link to post
Share on other sites



Has noone an idea? >_

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

_____________________________________________________________________________

Share this post


Link to post
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..

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0