<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
I can see two possible solutions to this problem. The first one
would be to use non-persistent highlights. The API to manage
non-persistent highlight is found in
ro.sync.ecss.extensions.api.highlights.AuthorHighlighter. You can
get access to the highlighter instance by calling
AuthorAccess.getEditorAccess().getHighlighter(). You'll have to
manually add the a highlight for each dxml-merge-start PI and also
remove them when needed.<br>
<br>
The second solution would be to change a bit the processing
instruction:<br>
<br>
<?dxml-merge-start text group="d2e150" mergeType="modify"
?><br>
<?dxml-merge-end text group="d2e150"?><br>
<br>
into:<br>
<br>
<?oxy_custom_start type="dxml-merge-start" text
group="d2e150" mergeType="modify" color="255,255,0" ?><br>
<?oxy_custom_end text group="d2e150"?><br>
<br>
This way the PI will automatically be identified by Oxygen as a
persistent highlight and you will also have in it all the
information you need for custom processing.<br>
<br>
Best regards,<br>
Alex<br>
--<br>
Alex Jitianu<br>
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<br>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a><br>
<br>
On 19-Dec-12 6:27 PM, Michael Anthony Smith wrote:<br>
</div>
<blockquote
cite="mid:AA03760C-86E6-4BBB-B752-7595D34E9A7B@deltaxml.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello,
<div><br>
</div>
<div>In my last posting to this list, entitled "<span
style="font-size: 12px; ">Request to enable 'form based
editing' from processing instructions", we set out our use of
processing instructions for merge conflict resolution. It
would be nice if we could highlight the content between two of
our processing instructions. So that the user could clearly
see what 'content' was in consideration.</span></div>
<div><span style="font-size: 12px; "><br>
</span></div>
<div><span style="font-size: 12px; ">It may be possible to do this
using AuthorPersistentHighlight, but this appears to be linked
with the <?</span><span style="font-family: monospace;
background-color: rgb(255, 255, 255); ">oxy_custom_start</span><span
style="font-size: 12px; ">?> and </span><span
style="font-size: 12px; "><?</span><span
style="font-family: monospace; background-color: rgb(255, 255,
255); ">oxy_custom_end</span><span style="font-size: 12px; ">?> </span><span
style="font-size: 12px; ">processing instructions.</span><span
style="font-size: 12px; "> We could use these, but it would
make our processing significantly more complicated (and our
format less succinct). Previous discussion on this topic on
the oxygen user mailing list, suggested that this was
limitation of the </span><span style="font-size: 12px; ">AuthorPersistentHighlight
approach (at least at that time). Is there anything that we
have missed/new-developments that would allow highlighting
content between arbitrary processing instructions.</span></div>
<div><br>
<div>Best regards,</div>
<div>Anthony.<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: medium; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: medium; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align:
-webkit-auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space; ">-- <br>
--
-------------------------------------------------------------------------<br>
Michael Anthony Smith, DeltaXML Ltd "Michael Anthony
Smith, DeltaXML Ltd "Experts in Information Change""<br>
T: +44 1684 869035 E: <a moz-do-not-send="true"
href="mailto:anthony.smith@deltaxml.com">anthony.smith@deltaxml.com</a> <a
moz-do-not-send="true" href="http://www.deltaxml.com/">http://www.deltaxml.com</a><br>
Registered in England 02528681 Reg. Office: Monsell
House, WR8 0QN, UK</div>
</div>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
</blockquote>
<br>
</body>
</html>