A C# Equivalent of the ACE syntax highlighter [duplicate] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want create my own IDE but I want a code editor that would
syntax highlighting.
I want to embed it as a control into a WPF window.
Malcolm

The Sharp Develop IDE has a great code editor that can be used in your programs relatively easily (it does require a little bit of work to figure out how it works, and it doesn't have "plug and play" documentation). If you look at the source for Kaxaml you can see how to embed it in WPF.

If you do not mind having no documentation whatsoever, AvalonEdit is a good choice. I am currently using for a project, and it is a great tool. I have not encountered a single bug even in complex scenarios.
You can find its source at svn://svnmirror.sharpdevelop.net/sharpdevelop/trunk/SharpDevelop/src/Libraries/AvalonEdit.

Another option is Scintilla.NET (UPDATED https://github.com/jacobslusser/ScintillaNET).
It is a .NET 2.0 wrapper around the Scintilla Native Control. We have successfully used to display/edit HLSL, XML, Text, and other internal scripting languages. It is easy to write a language description file for your own language if needed.
I'm currently hosting the WinForms control in our WPF applications. The only difficulty was getting a WPF context menu to activate when clicking within the control; solved it by listening for a MouseRightButtonDown event on the WinFormsHost and then setting the ContextMenu visible (ContextMenu.IsOpen = true) :/
I have been in contact with Actipro Software re: SyntaxEditor and the WPF version is being actively developed and will available soon. For the time-being we will continue to use Scintilla.NET

Related

Find the best prototype design tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am developing a Windows GUI Application. I need a tool to create a prototype design. Please help me to find the best tools? Thanks.
Visio have some stencils for Windows GUI which can be used to prototype a design.
Another option is to use the Visual Studio designer (for either WPF or WinForms) and just layout the forms, without any code.
It really depends on whether you want a free tool or a paid for one, plus what technology you're going to use in the long run.
For winforms, Anders answer is probably best.
If you're aiming at using Silverlight or WPF then I'd recommend Expression Blend as you can produce a rough working GUI design and quickly transform it into working code.
Microsoft SketchFlow seems like a quite good tool.
You can create more or less working prototypes, the standard skin of the prototypes are pencil-sketch style to give the viewer a feeling that the prototype is just a prototype and not a working application.
If you want to show examples of final look'n feel you can just use the regular WinForms or WPF designer.
I use this one a lot. It's easy to put stuff together and there is a wealth of addons to meet your gui needs.
Balsamiq

Is there a tool to analyse if a C# and WPF project can be ported to Silverlight? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a WPF and C# application, and I want to know if it can be ported to silverlight. Is there a tool to analyse the dependencies and tell me what I can't use, and what I can ?
Thanks.
As far as I know there is not. The best way to find out is to create a Silverlight project and copy your code across, then start analysing all the build errors. It is not a great solution, but I don't know of any better way.
As an aside, there is a nice white paper that details the differences between WPF and Silverlight here:
http://wpfslguidance.codeplex.com/Release/ProjectReleases.aspx
I have not seen such tool, but there is WPF compatibility list on MSDN which i use.
I've just remembered that when I tried to port a C# app to Linux/Mono I used Moma analyser, it helps to identify issues you may have when porting a .Net application to Mono, and I know that Mono only implement Silverlight not WPF, so I will give it a try.
And you can see and change the data for what Moma consider to be implemented or not. In the Definition directory there is a 2.8-4.0-defs.zip file, inside there are 4 text files exception.txt, missing.txt, monotodo.txt, and version.txt, it is 3 lists of functions that will produce errors. So maybe someone can scrape the info about what Silverlight implements, and change the files accordingly.

Open Source C# Syntax Editor with Intellisense [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Can anyone please suggest me a good open source C# code editor control with syntax highlighting and intellisense to use in my application. I am not asking for any IDE like VS or #develop, I need only a winform code editor control so that I can use it in my application for scripting.
Can you please suggest me a good one ...
I found ScintillaNET, but I want some other alternative..
Sounds like you want something like Avalon Edit:
http://www.codeproject.com/KB/edit/AvalonEdit.aspx
The editor for SharpDevelop, but its also a component you can download and use on your own stuff.
It is possible to host #Develop in your application,
http://laputa.sharpdevelop.net/AnnouncingSharpDevelopForApplicationsSDA.aspx
Wpf Source Code Editor is an alternative for ScintillaNET
I used the SharpDevelop code to do this a while back. Another alternative might be to take a look at the code for MonoDevelop and see if you can pull out the part you need and reuse that. Technically MonoDevelop is a fork of SharpDevelop but its been a long time so they might be completely different now.
After considering all the options I decided to go for ScintillaNet, cause it is very easy to use.

Is there something like Snoop (WPF) or FireBug (ASP.NET) for Windows Forms? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to point with the mouse on an area in my application and know the name of the UserControl.
Hawkeye (seems moved to github) can do that and more. You can see all the properties, fields, events and methods of a control. You can also edit the properties during runtime.
I recommend WinSpy++ because its much easier to get hold of then the original Spy++ which comes as part of the Windows SDK.
Just like Spy++ this only works at the Win32 level, of which WinForms is a thin/medium wrapper.
My favorite (for ease of use) is our modified wfSpy utility.
It is available at my blog:
http://www.cplotts.com/2009/10/28/an-ode-to-wfspy/
The original utility is from CodeProject ... but that version doesn't have the ability to drag the mouse on top of a control in your application.
Hawkeye (already mentioned above) is a favorite of mine as well ... more powerful than wfSpy ... but definitely harder to use. wfSpy is great for quick and simple spying (and of course editing of properties on the fly).
I havn't tried it, but there is a tool called ManagedSpy (Article) that might be helpful.
Spy++ allow you to see Window settings and messages, but that works at native (Win32) level, and will not show .NET information.

Fully managed text editor component for .NET/Winforms [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm basically looking for a replacement for RichTextBox or TextBox components that is fully written in c# without using pinvokes in order to keep cross platform compatibility.
RichTextBox contains for example functionality to highlight URLs in the text and provide a handler for event when user clicks on the link. But there is no way to specify what regex is used for that highlighting so there is no way to add support for URI schemes other than http/https.
Mono's RichTextBox is written in C# and is open source:
http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
It will take some work to separate it from Mono and get it running the way you want it, but it's better than starting from scratch.
Take a look at GtkSharp with TextView. It is cross-platform.
This might be a little overkill for what you're looking for, but have you considered SyntaxEditor from Actipro? (http://www.actiprosoftware.com/Products/DotNet/WindowsForms/SyntaxEditor/Default.aspx)
Yes, it is a commercial (i.e. not free) product, but it is capable of doing what you wanted, and more. Its 100% managed code, and supports some language plugins, e.g. a web-language add-in.
Might be worth a look.
The text editors with SharpDevelop and MonoDevelop may be useful.

Categories

Resources