I want to show the whole c program on screen in android
<p>I wanted to show the whole c program on screen which should be visible to user.</p>

<p>I used textView but i am getting errors as the code contains special symbols. </p>

<p>for example:</p>

<pre><code> android:text=" #include &lt;stdio.h&gt;
 int main()
{
int x, y, temp;

printf("Enter the value of x and y\n");
scanf("%d%d", &amp;x, &amp;y);

printf("Before Swapping\nx = %d\ny = %d\n",x,y);

temp = x;
x = y;
y = temp;

printf("After Swapping\nx = %d\ny = %d\n",x,y);

return 0;
 }" /&gt;
</code></pre>

<p>I also want that the user should be able to scroll the code as the codes may be larger than the example.I am a noob so please suggest me any alternate for the textView to display the code.</p>
