Search found 1007 matches

by Rickard Johansson
27 Aug 2011 18:22
Forum: Scripts
Topic: Scripted selections and current selection mode
Replies: 3
Views: 15592

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: 38859

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: 15597

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: 38859

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: 38859

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: 25465

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: 25465

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]+
by Rickard Johansson
27 Aug 2011 11:18
Forum: Syntax files
Topic: BASIC $ Keywords
Replies: 1
Views: 9120

Re: BASIC $ Keywords

Removing $ from symbols should work I think. You may have to test it with a few basic files.
by Rickard Johansson
20 Aug 2011 20:51
Forum: Syntax files
Topic: Tcl and Code Folding
Replies: 7
Views: 17631

Re: Tcl and Code Folding

Yes that will work. It's already does in other programming languages e.g. with functions like in C++

Code: Select all

int myAdd(int x) { return 10*x; }
by Rickard Johansson
20 Aug 2011 19:55
Forum: Syntax files
Topic: Tcl and Code Folding
Replies: 7
Views: 17631

Re: Tcl and Code Folding

Not without adding some kind of fold option.

To make it work is it safe to:

1. Always ignore { ... } on the same line?

2. Or assume the last { on the same line (or first on the next) is the beginning of a fold?
by Rickard Johansson
20 Aug 2011 17:01
Forum: Syntax files
Topic: Tcl and Code Folding
Replies: 7
Views: 17631

Re: Tcl and Code Folding

It's difficult because {} is used to enclose conditions, parameters... But maybe something like this: [Fold] 1_Id=proc 1_Begin= 1_End= 1_EndBefore=\in 1_Section= 1_NoParentOfId=0 1_NotAlwaysEnded=0 1_ListItem=ceMethod 2_Id=foreach 2_Begin= 2_End= 2_EndBefore=\in 2_Section= 2_NoParentOfId=0 2_NotAlwa...
by Rickard Johansson
19 Aug 2011 14:06
Forum: Syntax files
Topic: python syntax - get it now! ...and a question
Replies: 5
Views: 15418

Re: python syntax - get it now! ...and a question

Actually, the highlighting is correct since pass is on the last line and both the start and end portion of the fold is highlighted. I need a color file "python.ssx". You can create one by setting all colors in options (Highlighters) and click on the export button to save the color file. I ...
by Rickard Johansson
18 Aug 2011 16:08
Forum: Syntax files
Topic: folding & maxscript
Replies: 7
Views: 21690

Re: folding & maxscript

It will be very difficult to implement. We'll see...
by Rickard Johansson
18 Aug 2011 15:56
Forum: Syntax files
Topic: python syntax - get it now! ...and a question
Replies: 5
Views: 15418

Re: python syntax - get it now! ...and a question

Try this, it should solve your problems.
by Rickard Johansson
15 Aug 2011 13:54
Forum: External or integrated tools
Topic: WinMerge as integrated tool
Replies: 3
Views: 16291

WinMerge as integrated tool

WinMerge is a great tool if you need to compare different versions of a file or just compare two documents. It should be added in the "Integrated tools" page in options though and not as an external tool. Here is were you can find it: http://winmerge.org/ Add it in "Options -> Integra...