Code formatting on Forum
What are people using to get the nice color syntax and formating for XAML samples they post on the forums?
thanks,
Kiel
What are people using to get the nice color syntax and formating for XAML samples they post on the forums?
thanks,
Kiel
If you copy from Visual Studio's HTML/XML editor and paste into the forums' HTML editor it should "just work".
Drew,
That is not my experience. I copy from VS and the text is flush left with extra line separtors.
Ok, as a slightly off-topic followup.. Why have other people been granted permission to mark my threads as answered? As in this case, the question wasn't answered.
Drew, below is a copy and paste out of VS Express. Its doesn't really "just work", unless all you are refering to is the highlighting and not the formating. =)
<
StackPanel Orientation="Horizontal" HorizontalAlignment="Left"><!--
Date --><
TextBlock Name="dates" Text="{Binding DateAsString}" Style="{StaticResource EventDateStyle}" /><!--
Title --><
TextBlock Name="Title" Text="{Binding Title}" Style="{StaticResource EventTitleStyle}" /></
StackPanel>I probably marked the thread as answered. If it is ever marked in error, please unmark it. Sorry, sometimes I get it wrong.
I think I end up formatting the indention by hand, but the formatting comes from VS copy/paste.
I use CopySourceAsHTML:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<!-- ... -->
</sectionGroup>
</configSections>
<applicationSettings>
Very flexible; I'm configured it to have a border and a background colour...
Copy text from Visual Studio, paste into Word, change font to Courier New, size 8, copy again, and finally paste into forum.