Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code folding in web resources manager #253

Closed
mykola-den opened this issue Sep 25, 2015 · 11 comments
Closed

Code folding in web resources manager #253

mykola-den opened this issue Sep 25, 2015 · 11 comments

Comments

@mykola-den
Copy link

Feature request.
Is it possible to add code folding in web resource manager plugin?
That would allow to expand\collapse large bunches of code.

  • .html pages folding on open/close tags
  • .js libraries folding on curly brackets "{}"
@shytikov
Copy link
Contributor

I've heard it was one of suggestions to replace editor with the new improved version. I'm pretty sure it supports folding as well.

@MscrmTools
Copy link
Owner

It supports folding. I just need time to test embedding wpf in winforms in this scenario

@daryllabar
Copy link
Collaborator

Weird thought, but would it be possible to embed VS Code instead?

@shytikov
Copy link
Contributor

I LOVE Visual Studio Code, but it's essentially Google Chrome in text editor wrapper... So probably it's just impossible...

@daryllabar
Copy link
Collaborator

impossible-ish? http://www.codeproject.com/Articles/9123/Hosting-EXE-Applications-in-a-WinForm-project

I'd at least venture to say it's outside the scope of the XTB. I mean, it would be nice if it solved world hunger, but that's not really it's purpose.

@MscrmTools
Copy link
Owner

First tests are promising

image

@daryllabar
Copy link
Collaborator

First tests of what?

@MscrmTools
Copy link
Owner

Of using avalonedit wpf editor in web resource manager

@mykola-den
Copy link
Author

Awesome. Thanks a lot. Looking forward for release.

@MscrmTools
Copy link
Owner

I'm still fighting with XML/HTML folding. It is supposed to be included in standard, but I can't get it work so far

@MscrmTools
Copy link
Owner

Ok guys! Code folding is ready, using ICSharpCode.AvalonEdit

I just have a glitch with high DPI screen with increased font size. First time AvalonEdit is loaded the tool change its display to 100% instead of percentage defined in Screen properties (in my case 125%). When you navigate to another web resource and any other after that, the tool resize to its normal size. It does not occur when the font size is set to default (100%)
It seems to be something related to WPF in Winforms but my skills are too limited here to understand the problem.
Also, I can't succeed to make mousewheel event triggered to increase or lower font size in editor when Ctrl key is pressed.
If someone want to check these two problems, the code is available on the DEV branch

@MscrmTools MscrmTools added this to the October 2015 Release milestone Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants