I want to highlight javascript code in my CDATA Section.. [message #213777] |
Wed, 14 May 2008 06:38 |
Eclipse User |
|
|
|
Originally posted by: lji98.naver.com
Hi.
I'm developing own XML Editor from SSE Project.
In my editor , CDATA Text Section should be filled with javascript code.
for example,
1 <root>
2 <A> sample </A>
3 <script ev:event="xforms-submit" type="javascript"><![CDATA[
4
5 function a() {
6 alert(1);
7 alert(2);
8 }
9
10 ]]></script>
11</root>
can you see that javascript code from line 5 to line 8 ??
The problem is that i cannot implement colorizing of javascript code in
CDATA Section.
I was looking the concept of partition and regions, but i cannot find
clear solution.
I thought i have to define another region of each token. and i should
modify the parsing logic. right??
but i thinkn that is too tough job..
Please let me know the solution..
Thank you
|
|
|
Re: I want to highlight javascript code in my CDATA Section.. [message #213878 is a reply to message #213777] |
Wed, 14 May 2008 17:26 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Take a look at the code for the HTML editor, it includes the specifics
of what you are trying to do.
Dave
JunginLee wrote:
> Hi.
> I'm developing own XML Editor from SSE Project.
>
> In my editor , CDATA Text Section should be filled with javascript code.
>
> for example,
>
> 1 <root>
> 2 <A> sample </A>
> 3 <script ev:event="xforms-submit" type="javascript"><![CDATA[ 4
> 5 function a() {
> 6 alert(1);
> 7 alert(2);
> 8 }
> 9
> 10 ]]></script>
> 11</root>
>
> can you see that javascript code from line 5 to line 8 ??
>
> The problem is that i cannot implement colorizing of javascript code in
> CDATA Section.
>
> I was looking the concept of partition and regions, but i cannot find
> clear solution.
>
> I thought i have to define another region of each token. and i should
> modify the parsing logic. right??
>
> but i thinkn that is too tough job..
> Please let me know the solution..
>
> Thank you
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03866 seconds