Search found 1045 matches

by Rickard Johansson
30 Aug 2011 23:34
Forum: Syntax files
Topic: FORTRAN keyword issues
Replies: 6
Views: 17204

Re: FORTRAN keyword issues

It's been fixed. I'll release a new beta so please check when available.
by Rickard Johansson
30 Aug 2011 07:57
Forum: Syntax files
Topic: FORTRAN keyword issues
Replies: 6
Views: 17204

Re: FORTRAN keyword issues

They all contain a "C" which is used as a line comment. It seems using an alphanumeric character as line comment can interfere with keyword identification. I'll look into it.
by Rickard Johansson
29 Aug 2011 23:41
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

Well, I added the ability to add several values to both LineCommentA and B. Values are separated by |.

So

LineCommentA=C|D|c|d|!

works fine in the next release.
by Rickard Johansson
29 Aug 2011 16:28
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

I'll see if I can come up with something...but 5 different ways to make a line comment seems a bit much. An array of different values is probably the best solution e.g. =C|D|c|d|!|.
by Rickard Johansson
29 Aug 2011 15:23
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

Seems you have an extra space after "C"

LineCommentA=C<space>

Just remove it and it should work.
by Rickard Johansson
29 Aug 2011 14:37
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

It seems to work on my end using

LineCommentA=C
OnlyLineCommentIfFirstCharA=2

Could you recheck?
by Rickard Johansson
28 Aug 2011 18:40
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25538

Re: Another interesting syntax highlighting challenge

I've made a small change in the draw function and it seems to be working now.
by Rickard Johansson
28 Aug 2011 18:27
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25538

Re: Another interesting syntax highlighting challenge

I can't reproduce it using the find dialog so that seems to work, but I'll try to fix the syntax highlighting issue.
by Rickard Johansson
27 Aug 2011 18:22
Forum: Scripts
Topic: Scripted selections and current selection mode
Replies: 3
Views: 16705

Re: Scripted selections and current selection mode

Added 3 new methods to the document object in v7.63:

IsColumnModeActive(): Boolean
SetColumnMode(const bActivate: Boolean)
SetSelection(const startx,starty,endx,endy: Integer)
by Rickard Johansson
27 Aug 2011 16:47
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

Using regular expressions for code folding may seem like a good idea, but it actually doesn't help that much. You still need to match the { } characters to find the correct fold ending. So you still need to know the fold start "{" in plain text to match it properly. It might be helpful wit...
by Rickard Johansson
27 Aug 2011 15:56
Forum: Scripts
Topic: GetMethodAtCursor
Replies: 3
Views: 15742

Re: GetMethodAtCursor

Fixed in v7.63. Also added 3 new methods to the "Document" object:

CopyToClipboard()
CutToClipboard()
PasteFromClipboard()
by Rickard Johansson
27 Aug 2011 14:56
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

YAML highlighting may be difficult to accomplice. Using external highlighters is probably not an option. Any external script need an API to work with and that API just doesn't exist.
by Rickard Johansson
27 Aug 2011 14:52
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38965

Re: FORTRAN syntax file

The syntax option "OnlyLineCommentIfFirstChar" can now have 3 values in v7.63.

OnlyLineCommentIfFirstChar=2 means the line comment start character has to be the first character on the line.
by Rickard Johansson
27 Aug 2011 14:23
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25538

Re: Another interesting syntax highlighting challenge

Added to v7.63. Please test it in the upcoming beta release.

pjj
Rickard, what do you think?
The memo component in RJ TextEd is not a standard text component (like Rich Text Edit Control). Adding script support for highlighting would probably require some work...
by Rickard Johansson
27 Aug 2011 11:41
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25538

Re: Another interesting syntax highlighting challenge

I'll see if I can add support for regex in keyword identifying.

Maybe something like:

Code: Select all

[Keywords]
Normal keywords=AND|break|case|...
#Key/Value pair=[A-Z]+[0-9.\-]+
#M codes=M[0-9]+