Hi I feel the same way about other languages, I find myself editing little bits of code in blender from a variety of languages including C and C++ when I am working on a project and feel too lazy to open a proper editor. Having some form of syntax highlighting would be a great improvement, in my opinion.
I don't know how it might be implemented (add-on or internal), but maybe vim style customisation that would allow additional text editing and syntax highlighting options from vim scripts (or something similar, the same thing could be done using python but there are already many vim scripts around on the web). Thanks, Isaac Lenton is...@isuniversal.com On 19/12/2012, at 11:21, Benjamin Tolputt <btolp...@internode.on.net> wrote: > Is it my understanding then that a Lua syntax highlighting patch will now be > allowed? > > The last time I asked, the idea was (politely) slapped down for not being an > all encompassing syntax highlighting solution. As this OSL patch seems to > have a similar "non-universal" nature - I'd like to know if I can put > together the Lua/GLSL patch I asked about earlier this year for > consideration. It would make using Blender for game development purposes far > nicer. > > Thanks, > Benjamin Tolputt > > > On 19/12/2012, at 11:11 AM, Thomas Dinges wrote: > >> I disagree with that. >> A new button inside of a menu in the text editor won't harm. >> >> Thanks for the patch Patrick, a welcome addition. I have not looked at the >> code yet, but OSL syntax highlighting in trunk should be added. +1 >> >> Best regards, Thomas >> >> "Daniel Salazar - 3Developer.com" <zan...@gmail.com> schrieb: >> >>> Don't think so, the practice of using the extension is already in place >>> >>> see py >>> http://www.pasteall.org/pic/42060 >>> >>> vs osl >>> http://www.pasteall.org/pic/show.php?id=42059 >>> >>> This is a place where you don't have to be smart. It's a >>> simple syntax highlighting, why would it even be an option? Who would want >>> to disable syntax highlighting and why? Blender's UI is already filled with >>> options. >>> >>> cheers >>> >>> Daniel Salazar >>> patazstudio.com >>> >>> >>> >>> On Tue, Dec 18, 2012 at 5:31 PM, patrick boelens <p_boel...@msn.com> wrote: >>> >>>> >>>> I thought about that, but it seemed weird and cumbersome having to always >>>> end your file names in .py or .osl before (correct) highlighting can occur. >>>> (Maybe it's just me being lazy but I never end in either extension when >>>> working in Blender.) Maybe we could have a combination of the two (keep the >>>> option, but be smart about it)? >>>> >>>> For example: >>>> - New file - syntax = Python >>>> - Switch to "my_shader.osl" - syntax = OSL >>>> - New file - syntax = OSL (persistent from previous file) >>>> >>>> -Patrick >>>> >>>>> From: zan...@gmail.com >>>>> Date: Tue, 18 Dec 2012 17:13:30 -0600 >>>>> To: bf-committers@blender.org >>>>> Subject: Re: [Bf-committers] Syntax Highlighting for OSL - Question >>>>> >>>>> Sounds good, however I'd prefer the syntax selection be automatic based >>>> on >>>>> the extension, like it is already for other things related to py vs osl. >>>>> One less menu or button is always good! >>>>> >>>>> Daniel Salazar >>>>> patazstudio.com >>>>> >>>>> >>>>> >>>>> On Tue, Dec 18, 2012 at 5:11 PM, patrick boelens <p_boel...@msn.com> >>>> wrote: >>>>> >>>>>> >>>>>> Hey everyone, >>>>>> >>>>>> I just added a new patch for OSL syntax highlighting in the Text Editor >>>>>> which I thought people might find useful. Personally I would love a bit >>>>>> more color variation, which is why I did the request in the code >>>> comments >>>>>> of giving decorators their own color, and also why I'll probably give >>>> OSL's >>>>>> data types (int, void, closure) a unique one for myself as well. I >>>> figured >>>>>> I'd ask here to see how others would feel about having the same added >>>> in >>>>>> trunk rather than just tossing it in there along with the rest of my >>>> patch. >>>>>> >>>>>> Hope somebody finds this useful, cheers! >>>>>> -Patrick >>>>>> >>>>>> The patch: >>>>>> http://projects.blender.org/tracker/index.php?func=detail&aid=33609 >>>>>> >>>>>> _______________________________________________ >>>>>> Bf-committers mailing list >>>>>> Bf-committers@blender.org >>>>>> http://lists.blender.org/mailman/listinfo/bf-committers >>>>>> >>>>> _______________________________________________ >>>>> Bf-committers mailing list >>>>> Bf-committers@blender.org >>>>> http://lists.blender.org/mailman/listinfo/bf-committers >>>> >>>> _______________________________________________ >>>> Bf-committers mailing list >>>> Bf-committers@blender.org >>>> http://lists.blender.org/mailman/listinfo/bf-committers >>>> >>> _______________________________________________ >>> Bf-committers mailing list >>> Bf-committers@blender.org >>> http://lists.blender.org/mailman/listinfo/bf-committers >> _______________________________________________ >> Bf-committers mailing list >> Bf-committers@blender.org >> http://lists.blender.org/mailman/listinfo/bf-committers > > _______________________________________________ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers