Looking back at a couple of my syntax highlighting attempts I realized the best solution needed a little attention.
So… I dove back into the PHP code looking for the problem. I found 2 bad path references buried in some JavaScript code. Fixing those issues, fixed the syntax highlighting across the board.
Yeah!
Now I can keep up with the cool kids.
Or not!
I downloaded another code snippet tool this morning. Let’s see if this looks any better…
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
xmlns:ui="clr-namespace:System.Windows.Documents"
>
<Style
x:Key="ButtonFocusVisual">
<Setter
Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle
Margin="2"
StrokeThickness="1"
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
StrokeDashArray="1 2"
SnapsToDevicePixels="true" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
This one is the PreCode Snippet. You’ll need the installer add the plug-in to WLW and the Highlighter stuff to have everything you need to add to your headers. More brushes are available from UnderMyHat.org.
I think this needs more work. I generally like this one, but I need something I can automate.
Has anyone played with the old PresentationFramework.dll themes? I usually use the WPF Themes from CodePlex, but I wanted to see how these themes would look. After all, why wouldn’t I want my app to look like a windows app instead of some quasi-cartoon thingy?
I know I’ve been AWOL for a while. I’ve been busy with the business. Monday I searched for a charity. Tuesday, my new laptop arrived. I was too busy working through router issues. Wednesday, I started playing with my laptop and researching a version control solution. TFS will not work at the office. I ended up with a free online service. We’ll see if it works as planned. Today was more laptop work and adding projects to Subversion. Tomorrow, I have another new client meeting and a laptop to fix. My old netbook migrated to my employee. After Tuesday’s issues he can no longer connect to the network cleanly.
Read more…