Search found 1007 matches

by Rickard Johansson
05 Jun 2010 18:00
Forum: Syntax files
Topic: Help with keywords that contain a dot '.'
Replies: 2
Views: 7389

I'll look into it when I get the time. It may be a bug...
by Rickard Johansson
31 May 2010 11:46
Forum: Syntax files
Topic: 'start with @ to define a variable' ?
Replies: 3
Views: 8251

No. The feature was added after most syntax files were already created.

I would like to re-write the HTML syntax file using variables one day...
by Rickard Johansson
30 May 2010 16:12
Forum: Syntax files
Topic: 'start with @ to define a variable' ?
Replies: 3
Views: 8251

Variables should be used with auto completion only. I'll change the dialog text when adding keywords. Auto completion lists are often repeated between tags or classes. Variables are then used to simplify the process of adding auto completion data in the syntax files. I'll add some information in the...
by Rickard Johansson
10 May 2010 09:31
Forum: Syntax files
Topic: Help with code folding in custom syntax?
Replies: 2
Views: 8165

Actually, these fold settings should work pretty well I think: Id=If Begin= End= EndBefore=\in Section= NoParentOfId=0 NotAlwaysEnded=0 ListItem= Id=ElseIf Begin= End= EndBefore=\in Section= NoParentOfId=0 NotAlwaysEnded=0 ListItem= Id=Else Begin= End=End If EndBefore= Section= NoParentOfId=0 NotAlw...
by Rickard Johansson
09 May 2010 15:38
Forum: Syntax files
Topic: SQL syntax highlighting confusion
Replies: 1
Views: 7034

It's a bug. It's been fixed in the next release (v6.40).

Thanks!
by Rickard Johansson
09 May 2010 10:21
Forum: Syntax files
Topic: Help with code folding in custom syntax?
Replies: 2
Views: 8165

For case structures you could create folds by indention. It's not perfect though. For an example take a look at the Boo.syx file. I'll try to solve the "If" issues but it wont be easy. There is nothing that tells us which "If" statement we should use to create the fold, except ma...
by Rickard Johansson
30 Apr 2010 12:26
Forum: Language files
Topic: With of Preferences-Dialog Box
Replies: 2
Views: 19886

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

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

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

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

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

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

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

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

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...