[Newbies] Omnibrowser, italic Traits' method names

Lukas Renggli renggli at gmail.com
Sat Jun 23 17:58:28 UTC 2007


> It is a standard OB filter subclassed from OBFilter.  It is added to
> OBCodeBrowser metagraph. There are source codes in attachment.

Have a look at OB-Refactory, it uses filters to show elements within
an environment in bold:

displayString: aString forParent: aParentNode child: aNode
	"Display elements that are part of the environment in bold."
	
	^ (mode = #highlight and: [ aNode withinBrowserEnvironment: environment ])
		ifTrue: [ Text string: aString attribute: TextEmphasis bold ]
		ifFalse: [ aString ]

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Beginners mailing list