What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

This question already has an answer here:

How do I insert XML in my Stack Overflow question?

I have tried the code, HTML and other options, but I was unable to get my XML code snippet included in my question in a readable format.

<?xml version="1.0"?>
<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts" >
    <DTS:ConnectionManager>
        <DTS:Property DTS:Name="ObjectName">DB2Source</DTS:Property>
        <DTS:Property DTS:Name="Description"></DTS:Property>
        <DTS:Property DTS:Name="CreationName">OLEDB</DTS:Property>
        <DTS:ObjectData>
            <DTS:ConnectionManager>
                <DTS:Property DTS:Name="Retain">0</DTS:Property>
                    <DTS:Password DTS:Name="Password" Sensitive="1"></DTS:Password>
                    <DTS:Property DTS:Name="ConnectionString">Data Source=develop;>
                </DTS:Property>
            </DTS:ConnectionManager>
        </DTS:ObjectData>
    </DTS:ConnectionManager>

    <DTS:ConnectionManager>
        <DTS:Property DTS:Name="ObjectName">SQLDest</DTS:Property>
        <DTS:Property DTS:Name="Description"></DTS:Property>
        <DTS:Property DTS:Name="CreationName">OLEDB</DTS:Property>
        <DTS:ObjectData>
            <DTS:ConnectionManager>
                <DTS:Property DTS:Name="Retain">0</DTS:Property>
                <DTS:Password DTS:Name="Password" Sensitive="1"></DTS:Password>
                <DTS:Property DTS:Name="ConnectionString">Data Source=devc2400;</DTS:Property>
            </DTS:ConnectionManager>
        </DTS:ObjectData>
    </DTS:ConnectionManager>
</DTS:Executable>
share|improve this question

migrated from stackoverflow.com Aug 6 '13 at 21:42

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Bart, Arjan, Martijn Pieters, psubsee2003, Shadow Wizard Aug 6 '13 at 22:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I see you were able to do that just fine. :) –  Shadow Wizard Aug 6 '13 at 22:22

1 Answer 1

Just like with code blocks, add 4 spaces to the beginning of every line

e.g.

<xml>
    <some>xml</some>
</xml>
share|improve this answer
2  
Or select the text and hit ctrl+k. But not too hard... Keyboards have feelings too.. –  Lix Aug 6 '13 at 21:51