Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

XML Lexer? #2

Closed
twfurst opened this issue Apr 27, 2015 · 6 comments
Closed

XML Lexer? #2

twfurst opened this issue Apr 27, 2015 · 6 comments

Comments

@twfurst
Copy link

twfurst commented Apr 27, 2015

I've used the previous version of ScintillaNET that was on CodePlex for displaying XML in C# WinForms. I downloaded this new version today and am having issues with setting up an XML lexer. Is there a new way to accomplish this?

Thank you

@jacobslusser
Copy link
Owner

I've been implementing lexers on an "as needed basis" and haven't had any
requests yet for XML. I'll put in the code and drop you a line when it's
done.

Jacob

On Monday, April 27, 2015, twfurst notifications@github.com wrote:

I've used the previous version of ScintillaNET that was on CodePlex for
displaying XML in C# WinForms. I downloaded this new version today and am
having issues with setting up an XML lexer. Is there a new way to
accomplish this?

Thank you


Reply to this email directly or view it on GitHub
#2.

@jacobslusser
Copy link
Owner

I've checked-in the XML lexer enum value and style constants. You can find
direction on how to configure a lexer in the project README.md.

Please get latest and let me know if you have any other questions.

Jacob

On Mon, Apr 27, 2015 at 10:59 AM, Jacob Slusser jslusser.mobile@gmail.com
wrote:

I've been implementing lexers on an "as needed basis" and haven't had any
requests yet for XML. I'll put in the code and drop you a line when it's
done.

Jacob

On Monday, April 27, 2015, twfurst notifications@github.com wrote:

I've used the previous version of ScintillaNET that was on CodePlex for
displaying XML in C# WinForms. I downloaded this new version today and am
having issues with setting up an XML lexer. Is there a new way to
accomplish this?

Thank you


Reply to this email directly or view it on GitHub
#2.

@twfurst
Copy link
Author

twfurst commented Apr 29, 2015

Thank you for making this available, the only question I have is about folding. Is it functional for the XML lexer? I used the example in the README.md file but it is not showing up in my form.
form
Screenshot of code:
code

Thanks

@jacobslusser
Copy link
Owner

Looking at the native Scintilla code I think you also need to have the "fold.html" property set to "1" (in addition to the "fold" and "fold.compact" properties you already have).

If that doesn't work, let me know.

@twfurst
Copy link
Author

twfurst commented Apr 30, 2015

That did it. Thank you

@xonyen
Copy link

xonyen commented Jun 5, 2015

I'm sorry that I hadn't seen this before. I have tried the solution and it works well. Thanks a lot!

GerHobbelt pushed a commit to GerHobbelt/ScintillaNET that referenced this issue Nov 13, 2021
…-fix

Use the correct upper bound when clamping display line
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants