[Ironpython-users] IronPython hosting - providingsyntax highlighting (and intellisense?!) to customers
steve at mcneel.com
Mon Mar 12 17:03:08 CET 2012
We use the code editor component that the SharpDevelop guys wrote. In general it works great, but there was plenty of work involved in getting it set up to work how you would expect for editing IronPython scripts. I probably would have tried Keith’s ActiPro had I known about it when I started writing the python editor for Rhino.
Robert McNeel & Associates
From: Keith Rome
Sent: Monday, March 12, 2012 8:36 AM
To: Nick Aschberger ; ironpython-users at python.org
Subject: Re: [Ironpython-users] IronPython hosting - providingsyntax highlighting (and intellisense?!) to customers
At risk of sounding like an advertisement, I strongly recommend the ActiPro SyntaxEditor controls.
We have used the WPF and Silverlight versions with great success. It supports all of the features you mention (syntax highlighting, Intellisense, code completion scopes) and many more. They have a functional demo application with source code that exhibits all of those features.
Performance is great (be sure to enable ambient background parsing). We even have it wired up so that after parsing/lexing, we take the python source and run it through the IronPython compiler using a custom ErrorListener, which is used to collect compilation errors that are then fed into the ParseData output. And since we have a ParseErrorTagger and custom SquiggleTooltipProvider installed into the parser, we get those nice red squiggles directly under compiler errors in the source text itself, along with detailed tooltips.
Sorry if I get carried away, but it’s extremely cool stuff! Our python editing environment is very slick; while it does not quite have the features of Visual Studio’s editor, it comes really close (we even support breakpoints and stepping)… and it fully embeds in our WPF / Silverlight products.
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | mailto:rome at wintellect.com
From: ironpython-users-bounces+rome=wintellect.com at python.org [mailto:ironpython-users-bounces+rome=wintellect.com at python.org] On Behalf Of Nick Aschberger
Sent: Monday, March 12, 2012 7:35 AM
To: ironpython-users at python.org
Subject: [Ironpython-users] IronPython hosting - providing syntax highlighting (and intellisense?!) to customers
We are intending to use IronPython to provide a simple expression engine to our customers.
This will give them the ability to calculate some of their own results from data stored in the database.
Being a software project, I say “simple expression” but I can easily see it migrating towards a “complex expression” when customers get more familiar with python.
Now, I can just give them a text area to stick some text in, and maybe some tools to help build this text but… it seems like I should be able to do better than this, and it seems like something that others would have solved.
I’d really like the UI that the customer uses to compose an expression to have python syntax highlighting to help them.
Furthermore, if we make .NET objects/functions available to the python script, it would be fantastic if the user had some kind of intellisense available to help them when interacting with the types we would make available to the scripts to use.
Any advice, or experience with this?
Ironpython-users mailing list
Ironpython-users at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users