Igor’s answer is almost right. To delete the settings set
SetOptions[EvaluationNotebook[],
AutoStyleOptions -> {"CommentStyle" -> {FontWeight -> Plain,
FontColor -> GrayLevel[0.6`], ShowAutoStyles -> False,
ShowSyntaxStyles -> False, AutoNumberFormatting -> False}}]
You need to run
SetOptions[EvaluationNotebook[],
AutoStyleOptions -> {"CommentStyle" -> Inherited}]
( , , , ). , , .
Protect[HiddenData];
SetOptions[EvaluationNotebook[], HiddenData -> {"here a string"}]
, .
:
, HiddenData, , -
NotebookPut[DeleteCases[NotebookGet[EvaluationNotebook[]],
$CellContext`HiddenData -> _],
EvaluationNotebook[]]
2:
Mr Wizard , . , , , , :
NotebookPut[
With[{nb = NotebookGet[EvaluationNotebook[]], opts = Options[Notebook][[All, 1]]},
Prepend[Select[Rest@nb, MemberQ[opts, First[#]] &], First@nb]],
EvaluationNotebook[]]
, , , StyleSheet, ...
, - :
NotebookPut[Notebook[First@NotebookGet[EvaluationNotebook[]]],
EvaluationNotebook[]]