Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Visual Studio .NET > Third Party/Add-Ins

Third Party/Add-Ins Discussions on Third Party Add-Ins for Visual Studio's IDE, Code Libraries, etc.

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-07-2009, 7:18 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default .Net Script Editor Control

Hello All,
I am writing an application that is going to allow users to write .Net script to perform various tasks. I would like to have a slim editor for the users to utilize when writing .Net script. I was hoping to get collapsible code, syntax highlighting, line numbering etc, things like intellisense would be awesome but definitely not a requirement at the moment. Is anyone aware of anything like this that may already exist? Ideally I would like to get a control that encompasses this, get a class going and be on my way. At any rate, I was hoping that someone could point me in the right direction of either a control or an existing project that I could gleam from. What do you guys think? As always, thank you in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-08-2009, 10:17 AM
Hack's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Apr 2009
Location: Sterling Heights, MI
Age: 59
Posts: 313
Reputation: 0
Hack an unknown entityHack an unknown entityHack an unknown entityHack an unknown entity
Default

I found this...does it help?

CodeProject: Real Time syntax highlighting [wrapper class]. Free source code and programming help
__________________
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Microsoft MVP 2005/2006/2007/2008/2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-08-2009, 11:31 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default

Hey Hack,
I did alot of google searching for full IDE's and was not happy with the results, but what you found is awesome. What I envision doing is creating different RegEx libraries for different languages (if needed) in regards to syntax highlighting, then just have a editor class property "Language" to play with. Thanks a million for producing this, I am exciting to incorporate it.

Now unto the collapsible code. My google searches have revealed a good amount of different approaches. What I am wondering, has anyone here actually done a collapsible code editor and have any insight into the successes and pitfalls?

As always, thank you in advance!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-08-2009, 12:10 PM
Hack's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Apr 2009
Location: Sterling Heights, MI
Age: 59
Posts: 313
Reputation: 0
Hack an unknown entityHack an unknown entityHack an unknown entityHack an unknown entity
Default

I'm not real sure what you mean by "collapsible code"...
__________________
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Microsoft MVP 2005/2006/2007/2008/2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-08-2009, 1:56 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default

My mistake, I should have clarified on this aspect. By collapsible code, I mean having a tree structure on the left hand side of the code that allows you to expand and close sections of the code, such as Subs, Functions, Regions, etc. I, to an extent, want to mimic things like Visual Studio, .Net Editor, Notepad++ in this respect.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-08-2009, 2:00 PM
Hack's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Apr 2009
Location: Sterling Heights, MI
Age: 59
Posts: 313
Reputation: 0
Hack an unknown entityHack an unknown entityHack an unknown entityHack an unknown entity
Default

Ahhhhh...gotcha.

So, my next question would be are you familiar with populating a TreeView control or is that actually your next question?
__________________
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Microsoft MVP 2005/2006/2007/2008/2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-08-2009, 2:25 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default

Yea, I have done a bit of work with the Treeview control, that won't be an issue. I have seen using a Treeview for this chatted about on boards, but I guess I fail to make the connection. I'm not sure how I use the control to make the RichTextBox (I plan on using this control for the editing) behave in a manner to show collapsible code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-08-2009, 2:33 PM
Hack's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Apr 2009
Location: Sterling Heights, MI
Age: 59
Posts: 313
Reputation: 0
Hack an unknown entityHack an unknown entityHack an unknown entityHack an unknown entity
Default

Something like this perhaps....(this is my code library) - the right hand pane is a richtextbox. All the code routines are saved in a database and the left pane treeview is loaded from the database when the program executes.
Attached Images
File Type: bmp CB.bmp (85.4 KB, 14 views)
__________________
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Microsoft MVP 2005/2006/2007/2008/2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-08-2009, 2:42 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default

Right. But how would you collapse code at that point? I would like to be able to collapse the actual code in the RichTextBox, so that when a user is writing script, they can collapse the Methods to clean up workspace. So instead of seeing:

Sub Something()
Dim a
Dim b

'Do some stuff
End Sub

In the RichTextBox, they could collaspe it to see:

+ Sub Something()


Does that make sense? I apologize if I am not speaking correctly haha, it would definitely not be the first time that has happened.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-08-2009, 9:02 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 7
Reputation: 0
devoured is on a distinguished programming path ahead
Default

I do suppose you could refer to this as Code Folding as well.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 11:50 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.