Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

setting selection via char positions and setting its background color

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100421] setting selection via char positions and setting its background color
  • From: meitnik <meitnik at gmail.com>
  • Date: Wed, 3 Jun 2009 01:10:38 -0400 (EDT)

Hi,
Ok, I can found out this works nicely:

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

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