The MSDN documentation for Automatic Properties (a C# 3 language feature) states that attributes are not valid on automatic properties. This is not true, the following code compiles and works as expected:
public class Data
{
[XmlAttribute]
public int SomeNumber { get; set; }
}
class Program
{
static void Main(string[] [...]
A bug on Google Code asked for an alternative to the built-in Transpose Lines command in Programmer’s Notepad, allowing a single command to move the current line up or down, allowing repeated use to shift a line through the current document.
To look at implementing this, I started with a python script - it’s so much [...]
Notepad has a little-known feature where if you start a file with .LOG then every time the file is loaded the current date and time will be appended to the end of the file - allowing you to use a simple text file as a sort of diary.
A feature request came in for this and, [...]
My team at work uses a fantastic Visual Studio add-in called Source Analysis to ensure consistency in our C# code formatting, commenting and organisation.
Source Analysis has now been released for the whole world to use, for free! The free download is available at the MSDN Code Gallery:
Source Analysis at Code Gallery
There’s also a blog [...]
Another update to Damien’s great coding font Envy Code R, now at preview 7. This time we get a bunch of hinting improvements (Damien paid big bucks for the software to do this, consider donating!) and improvements when the font is used with larger sizes. Envy Code R also contains all the box drawing characters [...]
It’s time for a second 0.9 unstable release, bringing a number of bug fixes and new features:
Automatic Update Check - at launch Programmer’s Notepad checks in the background whether there is an update available and shows you a message if there is one.
Vista open and save dialogs are now used throughout when you’re running Vista, [...]
The Programmer’s Notepad Online Help was previously run using MoinMoin, a wiki engine developed using Python and one that I was fond of many years ago. As with everything else on the internet, the help website had begun to develop a lot of spam over the last couple of months, and it would seem that [...]
Who would want to hack my website?!
It would appear that hacking doesn’t always take the “This site 0WneD by L33t Hax0rs” form, and that Wordpress sites in particular are being targetted by Spam Injection hacks.
A few weeks ago I noticed that the ads on the front page of pnotepad.org were a little odd, lots of [...]
April 24, 2008 – 10:10 pm
Over on the forums, Michel Claveau shows how he gets context-sensitive help for Python code in Programmer’s Notepad:
Check where your python help file is (e.g. c:\python25\doc\Python25.chm)
Install keyHH from http://www.keyworks.net/keyhh.htm
Create a new tool in PN: - name: Python context Help - command: c:\windows\keyhh - parameters: -MyHelp -#klink “%w” c:\python25\doc\Python25.chm - shortcut: [...]
SteveJ shows how to use Programmer’s Notepad as the file editor with WinSCP