Why doesn WindowBuilder surround generate code with special tags or mark it as read-only?
Using special tags or marking code read-only would go against several of WindowBuilder’s major design goals. WindowBuilder does not make any distinction between generated code and user-written code. WindowBuilder is designed to generated the same code that you would write by hand and to make minimal changes to the source when you make a change to the design view. WindowBuilder never regenerates the entire source for a file. If you change a single property, it will change only a single line of code. That line of code could theoretically be anywhere in the source file (including within lines originally created by WindowBuilder or within lines that you wrote by hand).