Search found 1051 matches

by Rickard Johansson
29 Jul 2013 17:08
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

This works, but it's not an elegant solution: (?<=\$....\.)([a-zA-Z]+)|(?<=\$.....\.)([a-zA-Z]+)|(?<=\$......\.)([a-zA-Z]+) etc. (?<=\$....\.) matches a 4 letter name starting with $ e.g. $Name (?<=\$.....\.) matches a 5 letter name ... You can add as many expressions you want separated by |
by Rickard Johansson
29 Jul 2013 14:06
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

I don't think you can use regex expressions like \$[a-zA-Z0-9]+\. in a lookbehind or lookaround. It will only work with simple expressions like \. or \$

I'm not sure it works but have you tried (?<=\$\w+\.)[a-zA-Z]+
by Rickard Johansson
21 Jul 2013 17:07
Forum: Scripts
Topic: Convert between HTML entities and special characters
Replies: 3
Views: 16004

Convert between HTML entities and special characters

A simple script to convert HTML entities to characters or special characters to HTML entities. This is a modified script created by Walti. A dialog window let you choose which type of conversion you want to make. This script will only work with version 8.65, or later. var entities[200]; var chars[20...
by Rickard Johansson
14 Jul 2013 18:55
Forum: Scripts
Topic: The state of the Macro system
Replies: 5
Views: 16827

Re: The state of the Macro system

The script engine doesn't work well with Unicode. I'm trying to rewrite the code (not originally written by me) 8)
by Rickard Johansson
04 Jul 2013 17:09
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

It's called "positive lookbehind" and you can find some more information at http://www.regular-expressions.info/lookaround.html.
by Rickard Johansson
03 Jul 2013 17:59
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

Did you remove the theme in the options window first? The editor needs to re-load the .xml file from disk. Once that is done all options are stored in the TextEd.ini file.
by Rickard Johansson
03 Jul 2013 16:39
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

That should work as well.
by Rickard Johansson
03 Jul 2013 15:59
Forum: Syntax files
Topic: Highlight Object-Methods possible ?
Replies: 24
Views: 48213

Re: Highlight Object-Methods possible ?

I tried this in v8.63,

[Keywords]
#Object method=(?<=\.)[a-zA-Z]+

You can probably create a better regex expression.

You should be able to add more keyword colors manually to the settings file (TextEd.ini)...
by Rickard Johansson
03 Jun 2013 13:04
Forum: Syntax files
Topic: Powershell variables
Replies: 3
Views: 15288

Re: Powershell variables

You could use blocks, e.g.

[Block]
1_Name=Variable $
1_OnLine=1
1_AsString=1
1_Start=$
1_End=

Take a look at the Pearl syntax files.
by Rickard Johansson
03 Jun 2013 12:59
Forum: Scripts
Topic: REGEX "Problem"
Replies: 5
Views: 17215

Re: REGEX "Problem"

Doesn't the "Document.ReplaceAll()" function work? Or do you need another way to do regex search, maybe in a string?
by Rickard Johansson
08 May 2013 12:17
Forum: Syntax files
Topic: Highlight specialtext in different color possible ?
Replies: 5
Views: 18359

Re: Highlight specialtext in different color possible ?

It's a bug and it's been fixed in v8.62. Thanks!
by Rickard Johansson
18 Apr 2013 11:30
Forum: Syntax files
Topic: Highlight specialtext in different color possible ?
Replies: 5
Views: 18359

Re: Highlight specialtext in different color possible ?

Yes! Maybe something like this (not tested...)

[Keywords]
#Function names=_[0-9a-fA-F_]+
...
by Rickard Johansson
29 Mar 2013 14:26
Forum: News
Topic: Happy Easter
Replies: 0
Views: 11043

Happy Easter

Image

Have a good weekend everyone!
by Rickard Johansson
27 Mar 2013 12:20
Forum: Syntax files
Topic: Case insensitivity
Replies: 4
Views: 15291

Re: Case insensitivity

Made a small change in v8.61. If keywords are case sensitive, so are comments. If not case sensitive, then neigher are comments.
by Rickard Johansson
25 Mar 2013 21:38
Forum: Syntax files
Topic: Case insensitivity
Replies: 4
Views: 15291

Re: Case insensitivity

I may add an option for case sensitive comments.

You can still open the syntax editor from the highlighter drop menu "Edit current highlighter...".