Intellisense for CSS Editor

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Johnny Lozada
Avatar
Hi,
I have one question and I'd like somebody could help me. I developed a StyleSheet editor using Intellisense on this. It works well, if you have between "{" and "}" and you type a white space a properties list is shown. The same happens for the value list for each property. But these list are shwon always after of a white space. I need to do the following: When the user presses the "enter" key inside of a class, and new line is inserted, and we should see the property name list; when the user has entered a property name and then enters a ":", the associated property value list for the property name should be showed, if there is one.

I have it in my ActiproSoftware.CSS.xml file:


<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>


I tried to change it as follows:


<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character="&#10;">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=":">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>

But, it doesn't work. :(
Please, does somebody help me ?

Thanks a lot.

Johnny Lozada

Johnny Lozada

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Remember that : is probably changing states after it's inserted so your valid state is most likely wrong and should be PropertyState for that. The space works since it is already in ValueState at that point.


Actipro Software Support

Posted 19 years ago by Johnny Lozada
Avatar
Thanks for your answer, but can you give an example about this. In DreamWeaver the Enter key activates the properties list. I'd like this work with the enter key and not using whitespace. Thanks a lot.

Johnny Lozada

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Looks like you found a bug. Right now Tab and Enter key presses will not fire key-press triggers. This will be fixed for the next maintenance release. With that fix you will be able to specify &#xD; to indicate Enter.


Actipro Software Support

The latest build of this product (v24.1.0) was released 25 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.