# How to suppress automatically generated header in packages?

At the top of the .m file which is automatically generated from initialization cells in a notebook there appears a header:

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
...


Is there any way to suppress generating this header?

-
Welcome to Mathematica.SE! Could you take a moment and change your username to something easier to remember than the auto-generated one? I am not aware of any method to suppress that header, so you may want to simply post-process the file. Let's see if you'll get any definite answers. – Szabolcs Sep 10 '13 at 18:43
Any specific reason why you would want this? Normally an automatically generated initialization package will be rewritten every time its parent is saved (and any changes you made will be lost). The header is a good warning for this. If you would want to manually write code in a copy of such a file removing the code block wouldn't take too much effort. – Sjoerd C. de Vries Sep 10 '13 at 19:36
Use Wolfram Workbench for programming. Then you do not get that header and you have a ton of other improvements (like multiple undo, better code formatting, less crashes etc.). – Rolf Mertig Sep 10 '13 at 20:49

The information for the header appears to be sorted in the file:

\SystemFiles\FrontEnd\TextResources\FileHeaders.tr


Which includes:

@@resource PackageHeader
(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)


et cetera.

You should of course make careful backups before modifying a system file, but I expect that deleting the lines following @@resource PackageHeader or replacing them with a single blank line would suppress inclusion of this header in generated packages.

-