Charilaos Skiadas wrote:
Hi Horst, On Dec 2, 2005, at 11:14 AM, Horst Gutmann wrote:
Hi :)
Sorry, if this has already been this discussed, but I couldn't find anything related. I'm looking for a way to alter the appearance of let's say subsection headers in the Symbol Popup. Normally these would appear the same way as would sections. So I want to have subsections be slightly intended as for example class methods are in Python language bundle. My problem now is, I couldn't yet find out how this is achieved there :) I'd really appreciate any help on this matter :)
It seems to me this is set by the symbolTransformation preference in the Preferences part of the Python Bundle. I tried to do something similar for LaTeX and add:
symbolTransformation = 's/^(\s*)\section{(.+)}/$1 $2/; s/^(\s*)\subsection{(.+)}/$1 $2/';
in the "Symbol List" preference section of the bundle, but I couldn't get it to work. Maybe someone can explain to us how it is supposed to work, and why the above didn't work as expected? I bet Allan has explained it in great detail somewhere in the blog and I've missed it. Off to do an in depth search...
Ah, the place I wasn't looking in :) I was only searching in the language definition. While checking the preferences I noticed that this is "Symbol List:Method" preference is bound to the declaration scope. So perhaps we also have to set this symbolTransformation setting for the meta.section scope or something like that :)
Horst