# View source code

**URL:** <https://forum.xojo.com/t/view-source-code/23443>\
**Category:** General\
**Created:** [April 6, 2015, 1:00am UTC](https://forum.xojo.com/t/view-source-code/23443 "2015-04-06T01:00:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Martin](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Adam\_Martin](https://forum.xojo.com/u/Adam_Martin)\
**Post date:** [April 6, 2015, 1:00am UTC](https://forum.xojo.com/t/view-source-code/23443/1 "2015-04-06T01:00:19Z")

</div>

Is there a way to view all of the source code for the application that I am building rather than having to go into each event etc?

---

<div class="post-metadata">

**Author:** ![Axel\_Schneider](https://forum.xojo.com/user_avatar/forum.xojo.com/axel_schneider/32/465_2.png) [@Axel\_Schneider](https://forum.xojo.com/u/Axel_Schneider)\
**Post date:** [April 6, 2015, 1:14am UTC](https://forum.xojo.com/t/view-source-code/23443/2 "2015-04-06T01:14:29Z")

</div>

Not within Xojo.  
Save it as XML, then you can open it with a application of your choice (for example TextWrangler on Mac)

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [April 6, 2015, 2:05am UTC](https://forum.xojo.com/t/view-source-code/23443/3 "2015-04-06T02:05:35Z")

</div>

You can also use XjPrint to create a printed (or PDF) document of all the source code as well…

[www.rdS.com/xjprint](http://www.rdS.com/xjprint)

---

<div class="post-metadata">

**Author:** ![Johann\_Kienbrandt](https://forum.xojo.com/user_avatar/forum.xojo.com/johann_kienbrandt/32/2528_2.png) [@Johann\_Kienbrandt](https://forum.xojo.com/u/Johann_Kienbrandt)\
**Post date:** [April 6, 2015, 3:07am UTC](https://forum.xojo.com/t/view-source-code/23443/4 "2015-04-06T03:07:56Z")

</div>

You can highlight all the folders on the left in the IDE and then just print it, use print preview on the mac …

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [April 6, 2015, 3:28am UTC](https://forum.xojo.com/t/view-source-code/23443/5 "2015-04-06T03:28:08Z")

</div>

> [@178683:@Adam Martin](#):
>
> Is there a way to view all of the source code for the application that I am building rather than having to go into each event etc?

Directly in the IDE no  
See that NOTHING or EVERYTHING is selected  
Print to PDF on OS X (if you have a PDF printer or XPS printer set up on Windows you can do the same)  
Peruse it to your hearts content

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [April 6, 2015, 4:15am UTC](https://forum.xojo.com/t/view-source-code/23443/6 "2015-04-06T04:15:29Z")

</div>

I’m curious why you’d want to do this. I’ve been using Xojo since it was REALbasic and have never had this need, so I’m just wondering.

---

<div class="post-metadata">

**Author:** ![Adam\_Martin](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Adam\_Martin](https://forum.xojo.com/u/Adam_Martin)\
**Post date:** [April 6, 2015, 5:16am UTC](https://forum.xojo.com/t/view-source-code/23443/7 "2015-04-06T05:16:01Z")

</div>

> [@178696:@Kem Tekinay](#):
>
> I’m curious why you’d want to do this. I’ve been using Xojo since it was REALbasic and have never had this need, so I’m just wondering.

Because I have been hacking together my first app the last 2 days. Now that it is basically working I would like to review the code identifying where it can be optimised. Extracting similar functions into modules / classes etc.  
Normally I would refactor as I go and document what I am going to achieve. But this was an experiment (that has worked out quite good) so time to polish it up before adding anything new.

---

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 6, 2015, 6:22am UTC](https://forum.xojo.com/t/view-source-code/23443/8 "2015-04-06T06:22:38Z")

</div>

[quote=178691:@Dave S]You can also use XjPrint to create a printed (or PDF) document of all the source code as well…

[www.rdS.com/xjprint[/quote]](http://www.rdS.com/xjprint%5B/quote%5D)

Xjprint works nicely for me:

 ![](https://forum.xojo.com/uploads/default/original/1X/ce110126cd2a8e9c923c23cb955243477c414929.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:42pm UTC](https://forum.xojo.com/t/view-source-code/23443/9 "2020-10-29T17:42:49Z")

</div>


