Search found 1060 matches

by Rickard Johansson
10 Sep 2008 13:56
Forum: Syntax files
Topic: Actionscript?
Replies: 2
Views: 7967

Give me a day or so and I'll write one. I'll just convert one from an UltraEdit wordfile and add some code folding to it.
by Rickard Johansson
08 Jul 2008 11:01
Forum: Syntax files
Topic: Fold ini and inf files
Replies: 4
Views: 11321

I think a better solution would be to add an option to fold by indent (like Notepad++). This could be set in the syntax file and used with files like .boo, .ini, .reg... It will also check for the next keyword (block...) if the text have the same indention. E.g. [keyword] text=bla text=bla [keyword]...
by Rickard Johansson
01 Jul 2008 10:07
Forum: Syntax files
Topic: Fold ini and inf files
Replies: 4
Views: 11321

I'll see what I can do. We could enable the use of a wildcard (*) and maybe use something like: Id=[*] End= Notice the empty option value (End=). This would create a foldable block at the first empty line. I have desided to release a version 4.51. I'll add some small features and fix a few small iss...
by Rickard Johansson
30 Jun 2008 15:44
Forum: Syntax files
Topic: Fold ini and inf files
Replies: 4
Views: 11321

You could use regions. In the syntax file: Rgn_Start = "$START" Rgn_End = "$END" Rgn_CommentStart = ";" In code write: ;$START "This is section 1" [section] foo=bar foo=bar ;$END ;$START "This is section 2" [section] foo=bar foo=bar ;$END
by Rickard Johansson
21 May 2008 17:43
Forum: Syntax files
Topic: Making Expect syntax file
Replies: 3
Views: 9609

Functions like

Code: Select all

proc rand {n} { 
expr {int($n*rand())} 
}
should work in the next release. No option is needed. You can use the same fold options as in the C++ syntax file.
by Rickard Johansson
09 May 2008 16:01
Forum: Syntax files
Topic: Making Expect syntax file
Replies: 3
Views: 9609

The problem is the extensive use of the {} - characters. Something like this works perfectly

Code: Select all

proc rand (n) { 
expr {int($n*rand())} 
}
It might be difficult to make this work in a future version, but I'll look into it. Maybe some simple option to ignore the first {} pair after the proc statement.
by Rickard Johansson
25 Mar 2008 10:47
Forum: Syntax files
Topic: PHP syntax - comments
Replies: 1
Views: 7060

Of course. Open the file php.syx and add the line

LineCommentB=#

right under the "LineCommentA=//" line. I'll make the change in the next release.

Thanks.
by Rickard Johansson
21 Mar 2008 08:48
Forum: Scripts
Topic: Suggestions for the use of the scripts
Replies: 1
Views: 7722

I'm not sure I understood you correctly but to get the current word, you can do this:

'If the text is selected
dim s
s = Document.SelText

or

'If not selected
dim s
Document.WordLeft
Document.WordRight
s = Document.SelText
s = Trim(s) 'There may be a trailing space character here.
by Rickard Johansson
28 Feb 2008 15:07
Forum: Syntax files
Topic: PHP heredoc
Replies: 2
Views: 8412

No, you are right. The syntax doesn't handle these strings properly. It is possible to handle them if yoy use a fixed identifier. E.g. Put this in the php.syx (I asume you use v4.20 beta 1) [Block] ... 3_Name=HereDoc string 3_OnLine=No 3_AsString=Yes 3_Start<<<ID 3_End=ID Now you should be able to u...
by Rickard Johansson
26 Feb 2008 14:46
Forum: Language files
Topic: Update from v4.11 -> v4.20 b1
Replies: 0
Views: 15723

Update from v4.11 -> v4.20 b1

The file include all the changes made to the language files from v4.11 to v4.20 beta 1.

http://www.rj-texted.se/lang_update/lang_eng_420_b1.ini
by Rickard Johansson
26 Feb 2008 14:45
Forum: Language files
Topic: Update from v4.10 -> v4.11
Replies: 0
Views: 15227

Update from v4.10 -> v4.11

The file include all the changes made to the language files from v4.10 to v4.11.

http://www.rj-texted.se/lang_update/lang_eng_411.ini
by Rickard Johansson
26 Feb 2008 14:44
Forum: Language files
Topic: Update from v4.0 -> v4.10
Replies: 0
Views: 15664

Update from v4.0 -> v4.10

The file include all the changes made to the language files from v4.0 to v4.10.

http://www.rj-texted.se/lang_update/lang_eng_410.ini
by Rickard Johansson
04 Dec 2007 12:20
Forum: Scripts
Topic: Some example scripts
Replies: 3
Views: 21803

Some example scripts

Here are some example scripts published earlier in the beta forum:

http://www.rj-texted.st/downloads/Scripts.zip
by Rickard Johansson
05 Nov 2007 14:37
Forum: Syntax files
Topic: create fold block
Replies: 6
Views: 14141

It's the last ] character that makes it not work. This will though. In your syntax file add: (don't use the Fold_... options) Rgn_Start = "$REGIONSTART" Rgn_End = "$REGIONEND" Rgn_CommentStart = "//" In code write: //$REGIONSTART "This is a region" ... //$REGI...