Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Button["set",
  2. FrontEnd`SelectionSetStyle[FontColor, RGBColor[{1, 0, 0}]];
  3. Print[CurrentValue["SelectionData"]]]
  4.  
  5. Button["set",
  6. SetOptions[NotebookSelection[InputNotebook[]], FontColor -> RGBColor[{0, .7, .5}]];
  7. Print[CurrentValue["SelectionData"]]]
  8.  
  9. (
  10. SelectionMove[#, All, Cell];
  11. MathLink`CallFrontEnd[FrontEnd`SelectionSetStyle[#, "Title"]]
  12. ) & /@ Cells[CellStyle -> "Input"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement