Right, it's one of the things thats undocumented, though I'm surprised it still 
is. There was a thread about this approx. 2 years ago, looks like it was never 
added.

On Aug 1, 2013, at 18:34, Helge Mathee <helge.mat...@gmx.net> wrote:

> nevermind. To enable syntax highlighting you also have to provide the 
> siUILanguage,
> which apparently us missing from the 2014 siPPGItemAttribute documentation.
> 
> oItem.PutAttribute(siUILanguage, "JScript");
> 
> On 01.08.2013 18:14, Helge Mathee wrote:
>> Hey guys,
>> 
>> since I am working on the Creation:Splice integration in Softimage I'd
>> like to use the text editor widget for coding. Obviously there's syntax
>> highlighting support, I can see the autocomplete working for my key
>> word list already, but the highlighting isn't showing up.
>> 
>> Any hints?
>> 
>> Helge
>> 
>>  oItem = oLayout.AddItem( "klCode", "Source Code", siControlTextEditor);
>>  oItem.PutAttribute(siUIFont, "Courier New");
>>  oItem.PutAttribute(siUIKeywords, xsiGetKLKeyWords());
>>  oItem.PutAttribute(siUIAutoComplete, siKeywords);
>>  oItem.PutAttribute(siUICommentFont, "Courier New");
>>  oItem.PutAttribute(siUICommentColor, 0x75715e);
>>  oItem.PutAttribute(siUIPreprocessorColor, 0x808080);
>>  oItem.PutAttribute(siUIToolbar, true);
>>  oItem.PutAttribute(siUIFontSize, 10);
>>  oItem.PutAttribute(siUIHeight, 500);
>>  oItem.PutAttribute(siUIBackgroundColor, 0xf8f8f2);
>>  oItem.PutAttribute(siUIForegroundColor, 0x272822);
>>  oItem.PutAttribute(siUIHorizontalScroll, true);
>>  oItem.PutAttribute(siUIVerticalScroll, true);
>>  oItem.PutAttribute(siUILineNumbering, true);
>>  oItem.PutAttribute(siUILineWrap, false);
>>  oItem.PutAttribute("UseSpacesForTab", true);
>>  oItem.PutAttribute("TabSize", 2);

Reply via email to