I know FrontEnd`SelectionSetStyle is undocumented, but its name suggests it does what I need. What is its syntax?

I have already tried several variations of the following button on some selected code in an input cell.

  FrontEnd`SelectionSetStyle[FontColor, RGBColor[{1, 0, 0}]];


Using the kernel, the following code does what I need:

 SetOptions[NotebookSelection[InputNotebook[]], FontColor -> RGBColor[{0, .7, .5}]]; 

I assume that FrontEnd`SelectionSetStyle can change the font color of the selection while using the front end only. If so, what is its syntax?

  • $\begingroup$ After your update it is unclear what your question is. Can "what" be done in the front end only? $\endgroup$ Oct 18, 2013 at 20:42
  • $\begingroup$ @MikeHoneychurch: I re-worded the question, thank you for the note. $\endgroup$
    – Hector
    Oct 18, 2013 at 22:12

1 Answer 1


Your assumptions are most probably wrong, it seems that this function is meant to change CellStyle.

e.g. use this code to convert Input cells to Title cells in current notebook:

 SelectionMove[#, All, Cell];
 MathLink`CallFrontEnd[FrontEnd`SelectionSetStyle[#, "Title"]]
   ) & /@ Cells[CellStyle -> "Input"]

Used here: Set the style of a cell (link corrected)

Found there: How can I get the style of a CellObject?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.