Update: Version 1.1 released - see this post for details.
I knocked this together to help me write my articles as I got fed up with typing BBCode tags manually but figured it might be useful to others
It's nothing fancy, just a Windows text editor that helps you out with a handful of buttons for inserting BBCode tags.
It's written in C# 2008 so requires the .Net Framework 3.5 to run and I've only tested it on Windows Vista so it may or may not work with XP / 2000
Big Important Note! This tool is provided as-is. That means that if it does go terribly wrong and delete all your files or turn your computer into a fireball, I accept no responsibility - you use this tool at your own risk
Some tips: If you click a BBCode button with no text selected it will insert the tags at the current cursor position then put the cursor between the tags. If you click a BBCode button with some text selected it will wrap the text with the tags then place the cursor after the closing tag.
Installation: Unzip the .exe file
Screenshots: (sorry, there really isn't that much to see )
At some point I'll knock together v2 with a code/wysiwyg editor view. I wouldn't hold your breath for it though, I'm like a magpie, I get distracted by shiney things (or new program ideas in coding terms)
* You can now use the Tab key in the text editor (thanks Gareth)
* Ctrl-A now selects all text in the editor (thanks Gareth)
* Preview button! It uses the default web browser to launch a local preview of the article (thanks Wildhoney and Gareth)
Note about the preview function - it's not the most bulletproof bbcode parser in the world but should give you a general idea of what your article will look like on TalkPHP It currently supports the font, size, bold, italic, underline, php, code, sql and inline tags.
Screenshots of the new preview mode:
The same note in my first post still applies - this program works fine as far as I know but you use it at your own risk - if it melts your computer, I accept no responsibility
Any bugs, please let me know.
Last edited by Alan @ CIT : 03-12-2008 at 07:30 PM.
The Following 2 Users Say Thank You to Alan @ CIT For This Useful Post:
Can you paste the block of text that has your [code][/code] tags in?
Also, are the PHP/SQL blocks displaying ok?
No, the SQL / CODE / PHP blocks to not display properly. When the page is loaded in the browser, I get something to the effects of
SELECT COUNT(*) FROM OtherTable
WHERE OtherTable.FK = ThisTable.PK
) AS OTCountValue
ORDER BY SomeColumn
CODE tags do the same, and PHP tags don't display anything. A look at the HTML source reveals what appears to be a properly formatted HTML document with breaks and a DIV container for the entire block of code. The HTML source also shows the PHP code within the tags as if it were a comment; it's there in the source, but it's italicized.
I've also used the bbtag buttons vs. typing the bbtags in by hand, no difference.
Also, doesn't matter whether I save the file first or not.
I've tested this on my laptop running Vista Home Premium && Firefox, and just now on XP Pro with the same version of Firefox. May be something to do with having FF as the default browser? Or the version of .NET installed on these machines? I do have Visual C++ 2008 on both machines, if that makes a difference.
I reject your reality, and substitute my own.
The Following User Says Thank You to SOCK For This Useful Post: