Frequently when I ask a question I have to include quite a bit of code for reference purposes.
It would be nice to be able to bold the important lines in the code.
For example this code:
<DataTrigger Value="True">
<DataTrigger.Binding>
<MultiBinding Converter="{StaticResource DisableWorkItemConverter}">
<Binding ElementName="MainForm" Path="PickedWorkItemID"/>
<Binding Path="Id"/>
</MultiBinding>
</DataTrigger.Binding>
<Setter Property="IsEnabled" Value="False"/>
<Setter Property="IsSelected" Value="False"/>
</DataTrigger>
Is not way long, but the important part (as seen in this question) is the second to last line. However, if I try to bold it, it ends up looking like this:
<DataTrigger Value="True">
<DataTrigger.Binding>
<MultiBinding Converter="{StaticResource DisableWorkItemConverter}">
<Binding ElementName="MainForm" Path="PickedWorkItemID"/>
<Binding Path="Id"/>
</MultiBinding>
</DataTrigger.Binding>
<Setter Property="IsEnabled" Value="False"/>
**<Setter Property="IsSelected" Value="False"/>**
</DataTrigger>
Not what I was going for. It would be nice to be able to draw attention to specific lines of code when needed.
(One suggestion of a different color background sounds nice too (ie a yellow background to draw the eye to the relevant code.)
If there is some other way to bold in code please let me know.
int main(int argc, char **argv)
. Now everything after that will be bold.<pre><code>
instead of four spaces. You're forfeiting the automatic escape of HTML/XML characters though.