bobbylight / AutoComplete

A code completion library for Swing text components, with special support for RSyntaxTextArea.
BSD 3-Clause "New" or "Revised" License
166 stars 55 forks source link

Less then symbol "<" #75

Open FrancescoGallucci opened 4 years ago

FrancescoGallucci commented 4 years ago

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

bobbylight commented 4 years ago

Thanks, I'll take a look.

FrancescoGallucci commented 4 years ago

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

Mouseviator commented 2 years ago

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