({{, (RefLink[CellLabelStyle, paclet:ref/CellLabelStyle]) 
is an option for (RefLink[Cell, paclet:ref/Cell]) that specifies the style to use in displaying cell labels marking inputs and outputs.}})

OpenersNotesSection(Spacer1)Details

(RefLink[CellLabelStyle, paclet:ref/CellLabelStyle]) specifies the style used for displaying the (RefLink[CellLabel, paclet:ref/CellLabel]).

(RefLink[CellLabelStyle, paclet:ref/CellLabelStyle])->style specifies that any (RefLink[CellLabel, paclet:ref/CellLabel]) setting should be displayed with the specified style.

(RefLink[CellLabelStyle, paclet:ref/CellLabelStyle])->{currentstyle,expiredstyle} specifies that if (RefLink[ShowCellLabel, paclet:ref/ShowCellLabel])->(RefLink[Automatic, paclet:ref/Automatic]) is given, cell labels that were generated by a running kernel should be displayed with currentstyle. After the kernel session ends, any cell labels generated will instead be displayed with expiredstyle.

Styles can be specified using named styles from the stylesheet or any font setting. Multiple settings can be combined using (RefLink[Directive, paclet:ref/Directive]).

The typical default value is (RefLink[CellLabelStyle, paclet:ref/CellLabelStyle])->{"CellLabel","CellLabelExpired"}.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Change the color of the input cell's label:

CurrentValue[EvaluationCell[],CellLabelStyle]=Directive["CellLabel",FontColor->Darker[Green]];

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CellLabel, paclet:ref/CellLabel])  ▪  (RefLink[ShowCellLabel, paclet:ref/ShowCellLabel])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Cell Styling Options, paclet:guide/CellStylingOptions])}})}})