T save as macrofile

Hi,
I saved a canvas as a macro file.(example.C)
when i open it,i had seen another commands too in it ,how can i save my command as writed in terminal.
Thanks to all.

[/img][/b]

Hi,

you could copy (from) your history file called .root_hist

Cheers, Axel.

Thank you ,i will save it as you said