Help needed for syntax file

Discuss syntax highlighting or submit new syntax files.
Post Reply
François TREMEL
Posts: 5
Joined: 11 Jan 2010 12:28

Help needed for syntax file

Post by François TREMEL »

Hello,

I would like to use RJ TextEd to edit a type of file used in my company.

The structure of this file is:

Code: Select all

CPU DEF
{

OPTION {
. . .
};

OBJ xxx
{
   MEMBER {. . .}
   MEMBER {. . .}
};

FONCT yyy
{
   MEMBER {. . .}
   MEMBER {. . .}
};

OBJ zzz
{
   MEMBER {. . .}
   MEMBER {. . .}
};

};

I have defined
Fold_begin {
Fold_end }
nothing in Fold_List_item

And xxxxxxxxxx in List_exclude

But even the OPTION, FONCT and OBJ are foldable, only CPU DEF is listed as method in the code explorer.
I would kike to have FONCT and OBJ type in the code explorer but I don’t want the word FONCT or OBJ to appear so only xxx, yyy and zzz should appear.
How to do ?
[/code]
User avatar
Rickard Johansson
Site Admin
Posts: 6628
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

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.
François TREMEL
Posts: 5
Joined: 11 Jan 2010 12:28

Post by François TREMEL »

OK, Thanks
I have tested, that works. :D

So the Method are listed in class and not in Module. The class should be selected to display the Methods.
I don't take care of this at the first moment.
But this solve my problem.
Post Reply