# Export component event scripts

**URL:** <https://forum.inductiveautomation.com/t/export-component-event-scripts/5070>\
**Category:** Module Development\
**Created:** [August 29, 2012, 8:15am UTC](https://forum.inductiveautomation.com/t/export-component-event-scripts/5070 "2012-08-29T08:15:30Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![filipg](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@filipg](https://forum.inductiveautomation.com/u/filipg)\
**Post date:** [April 24, 2020, 7:07pm UTC](https://forum.inductiveautomation.com/t/export-component-event-scripts/5070/21 "2020-04-24T19:07:24Z")

</div>

> [@pturmel](#):
>
> I’ve never had a problem copying the entire script **as long as I omit the signature and top comment block.**

Sigh. **This works, of course.** Thank you.

New problem (what I was trying to avoid, with Kate) is that pasting contents back in messes up all indentations.

Regarding "copying the entire windows in XML format", can this be pasted back in (safely)? Is that what rest of this posting is about (serializing and de...)?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2020, 8:30pm UTC](https://forum.inductiveautomation.com/t/export-component-event-scripts/5070/22 "2020-04-24T20:30:48Z")

</div>

> [@filipg](#):
>
> New problem (what I was trying to avoid, with Kate) is that pasting contents back in messes up all indentations.

Ignition's editors use tab-indentation and a tab width of four. Place a kate modeline at the bottom of your scripts to make kate conform.

> [@filipg](#):
>
> can this be pasted back in

Copy entire window out as XML, edit, and paste entire window back in as XML. As long as you don't disturb the structure of the object references, it'll work.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 25, 2024, 3:11pm UTC](https://forum.inductiveautomation.com/t/export-component-event-scripts/5070/23 "2024-03-25T15:11:17Z")

</div>

Split this topic on March 25, 2024, 3:11pm UTC

A post was split to a new topic: [Issues with view.json file](https://forum.inductiveautomation.com/t/issues-with-view-json-file/87842)

[Previous page](https://forum.inductiveautomation.com/t/export-component-event-scripts/5070.md?page=1)
