Search found 1046 matches

by Rickard Johansson
30 Apr 2010 12:26
Forum: Language files
Topic: With of Preferences-Dialog Box
Replies: 2
Views: 22292

I've made the option dialog a bit wider in v6.30. I've also tested it using the German language file.
by Rickard Johansson
21 Apr 2010 10:12
Forum: Scripts
Topic: Some example scripts
Replies: 3
Views: 20162

I've updated the link above. Thanks!
by Rickard Johansson
06 Apr 2010 16:08
Forum: Syntax files
Topic: ASP Tags
Replies: 3
Views: 8995

Can you add another option that we can choose just the color of tags. not with symbols or text, just the tags alone?
OK, it's been added to the ASP and PHP syntax.

I'll release the final version at the end of this week, but I can't say exactly when.

Thanks!
by Rickard Johansson
06 Apr 2010 09:41
Forum: Syntax files
Topic: ASP Tags
Replies: 3
Views: 8995

I changed it in v6.20 (final). The symbol color is used for PHP and ASP tags, instead of the text color.
by Rickard Johansson
06 Mar 2010 13:28
Forum: Scripts
Topic: Validate XML syntax
Replies: 0
Views: 5754

Validate XML syntax

Here is a Pascal script to validate the syntax in a XML or (x)Html file. It only works in v6.10 beta 1, or later. // Validate XML syntax // Written by Rickard Johansson // Global variables var w,s: WideString; i,n,nc: Integer; len: Integer; bComment: Boolean; function GetTagName(var index: Integer; ...
by Rickard Johansson
23 Feb 2010 12:08
Forum: Syntax files
Topic: JScript syntax file: common class member lists
Replies: 4
Views: 9789

It's a bit to complicated. I want it to be rather simple and the [BaseClassList] , or whatever I decide to call it, should just be a list of variables with a member list. [BaseClassList] @HTMLElement=name|name+p##attributes[]|attributes[]+n##childNodes[]|childNodes[]+n##setAttribute()|setAttribute+m...
by Rickard Johansson
21 Feb 2010 14:30
Forum: Syntax files
Topic: JScript syntax file: common class member lists
Replies: 4
Views: 9789

Maybe something like this?

Code: Select all

[AutoComplete]
@BaseClass=members common in most classes
FooClass=@BaseClass|other members not in the BaseClass list
I guess we could add @Class lists in its own section e.g.

[BaseClassLists]
@BaseClass=...
by Rickard Johansson
13 Feb 2010 11:23
Forum: Scripts
Topic: Turn word wrap on/off for all open documents
Replies: 1
Views: 6745

Turn word wrap on/off for all open documents

Two scripts for ramon (and others who might be interested...). Here are 2 simple scripts to turn word wrap on/off for all open documents. Turn word wrap on: // Pascal script // Turn on word wrap for all open documents. // Global variables var n: Integer; // Enter code here begin for n := 0 to MainAp...
by Rickard Johansson
12 Feb 2010 20:01
Forum: Scripts
Topic: cpp-Demo for ReplaceAll / Convert Chars to HTML-Entity's
Replies: 7
Views: 16113

I think you should avoid using Document.ReplaceAll in a loop. It updates the document every time it's executed and it may create a huge undo buffer. Maybe you could use something like this instead: // Start-Code { int i = 0, x; gen_table(); s = Document.SelText; if (s = "") { Document.Sele...
by Rickard Johansson
31 Jan 2010 16:32
Forum: Syntax files
Topic: Help needed for syntax file
Replies: 2
Views: 7498

You could try

[FoldOptions]
List_AsStruct=
List_AsEnum=
List_AsClass=CPU
List_Exclude=xxxxx
List_ClassSeparator=
Separators=;()}
Case=1

[Fold]
1_Id=
1_Begin={
1_End=}
1_EndBefore=
1_Section=
1_NoParentOfId=0
1_ListItem=ceMethod


The words FONCT etc. will appear in the view though.
by Rickard Johansson
18 Oct 2009 12:55
Forum: Scripts
Topic: Actual Language (English/German/etc.)
Replies: 2
Views: 8597

Added a script function in v5.71 to get the current language file name

MainApp.GetCurrentLanguageFileName(): WideString;

Hope that will help!
by Rickard Johansson
25 Aug 2009 16:41
Forum: Syntax files
Topic: VBScript On Error
Replies: 1
Views: 6437

I've added a new fold item:

Id = Resume
End = Next

Since both "Resume" and "Next" are on the same line, the fold items are ignored.
by Rickard Johansson
16 Aug 2009 13:39
Forum: Scripts
Topic: How do I access the Canvas in Javascript?
Replies: 1
Views: 6991

Here is one: // Global variables var f, b; function ButtonClick(Sender) { DrawInCanvas("Hello World!"); } function DrawInCanvas(s) { f.Canvas.Font.Height = 24; f.Canvas.TextOut(100,80,s); var h = f.Canvas.TextHeight("Tg"); var w = f.Canvas.TextWidth(s); f.Canvas.Pen.Color = clRed...
by Rickard Johansson
07 Jul 2009 15:03
Forum: Language files
Topic: Polish localization of RJ TextEd v.5.30
Replies: 2
Views: 17119

The language file is included and installed with v5.40 beta 1.
by Rickard Johansson
06 Jul 2009 18:13
Forum: Scripts
Topic: Create code for Contenido-container
Replies: 3
Views: 10190

You have to use d.InsertText("\r\n");

So,

s = "row1\r\nrow2\r\nrow3\r\n";
d.InsertText(s);

should work.