Use Visual Studio for custom script language -
we using commercial software has own scripting language can customize product. tedious write code in without ide , has own compiler.
is possible use visual studio , create environment me write scripts in language , of intellisense , syntax highlightning , other things find in ide? ideally bind button in vs launch external compiler , compile code don't have switch windows time well.
if possible hard thing accomplish?
yes, possible. need create visual studio shell add-in custom language services , text editors. need install appropriate visual studio sdk , you'd continue to:
you're allowed ship visual studio isolated shell application (license required , there limitations) users don't need have visual studio professional installed.
there number of open-source projects provide custom editor, language services etc in visual studio, these provide nice place research how things done, next teh visual studio sdk documentation:
- pytools, visual studio editor ironpython
- phalanger, contains visual studio editor php
- poshtools, visual studio service powershell editing right inside visual studio
you'll want dig msbuild well, since visual studio expect create project file if want edit collection of files , compile them. msbuild in turn call own compiler, calls csc
compile c# code example.
Comments
Post a Comment