From: Li Chen Date: 2008-01-12T04:59:03+09:00 Subject: Re: search pattern Sebastian Hungerecker wrote: > Li Chen wrote: >> Now I have a question: is it possible in Ruby to highlight or underscore >> or use different font size for the found pattern? > > That depends on how/where you output the data, obviously. If you're > writing a > GUI app or a webpage you can, of course, go as crazy with the font as > you > want to. > In terminal apps you don't have control about font size or face. > Changing > color, inverting color or underlining is possible, but terminal > dependant > (specifically I don't think the terminal in Windows handles ANSI escape > sequences). There probably are gems to abstract away the differences > between > platforms, though. > > > HTH, > Sebastian Thank you so much, Li -- Posted via http://www.ruby-forum.com/.