AutoComplete icon indicating copy to clipboard operation
AutoComplete copied to clipboard

Less then symbol "<"

Open FrancescoGallucci opened this issue 4 years ago • 3 comments

Using BasicCompletion on several words and symbols, I've problems with less then symbol ( "<" ) if I put it as replacementText in the BasicCompletion attributes:

  • if I put it alone the associated completion rows don't appear in choice list;
  • if I put it with other text in choice list will appear only other text. What's wrong? Are there some special/reserved keywords? Is that same problem of issue #73 ?

FrancescoGallucci avatar Jun 16 '20 09:06 FrancescoGallucci

Thanks, I'll take a look.

bobbylight avatar Jun 16 '20 15:06 bobbylight

I solved (for now) using TemplateCompletion with RSyntaxUtilities.escapeForHtml(...) on all the constructor's params except for param "template".

FrancescoGallucci avatar Jun 17 '20 10:06 FrancescoGallucci

Hi,

I was dealing with that issue to. I solved it forking to my own branch and did couple of changes inside the CompletionCellRenderer.java, FunctionCompletion.java, MarkupTagCompletion.java and VariableCompletion.java and I also used the RSyntaxUtilities.escapeForHtml(...) from you API. I attached the patch/diff file if you want to consider to use this. Of course, this is my quick patch the seems to work (for me) and maybe I did not catch all the places that needs to be updates... you know your code better for sure :)

Thanks for all your wonderfull projects ;)

AutoCompletion_htmlChars.patch.zip

Mouseviator avatar Feb 01 '22 14:02 Mouseviator