MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

setting selection via char positions and setting its background color

Ok, I can found out this works nicely:

SetOptions[NotebookSelection[InputNotebook[]], Background ->

but what I really want is a way to set the selection of via position
of chars:

charpos= {12, 23} ;
SetOptions[NotebookSelection[charpos],  Background -> LightBlue]

Is there a way to do this kind of action? I want to set the background
via code via char pos. Thanks.

  • Prev by Date: Re: RandomReal gets stuck
  • Next by Date: Re: Sidebar Tools
  • Previous by thread: Re: 100,000 posts!
  • Next by thread: Re: Re: Re: problem writing debugging utility