The NEXT thing to try!!

Icon

Random rants and tips about NETCF, WinCE, Emacs, Powershell etc.

Putting Scrollable Code in wordpress

<div style=”overflow: auto; height: 350px; width: 100%; background-color: #aaaaaa “>
<pre style=”border-top: 2px solid #aaaaaa; border-bottom: 2px solid #aaaaaa; width: 100%;font-family: ‘Courier New’,Courier,Fixed”>

<– Your Code goes here — >

</pre></div>

Code that goes within these tags looks like this. If the lines are long, then it will automatically insert horizontal scrollbars. Check out the vertical and horizontal scrollbars.

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

Some extra lines for vertical scrollbar to appear

I checked the approach for Firefox-2.0.0.7 and IE6 and it was working fine. There is one problem, that after saving the post if you want to re-edit the post, wordpress would have modified the code. So it is advisable to put these tags just before publishing your post.

Advertisements

Filed under: Blogging

AIRPress, blogging on wordpress

Airpress, a nice kool little AIR app for blogging in wordpress. With the offline edition mode, it fits very well with the requirements of a blogging Desktop application like Windows Live Writer.
With all the super kool effects and UI, it just looks great. Drag and drop support for inserting images and other content is also helpful. I am myself writing this post from AirPress itself.

In my first attempt with the tiny app I found few issues:

  1. It doesn’t allows something like editing html so the corruption made by the UI can’t be corrected.
  2. Drag and drop operation on an image can be undone.
  3. You can’t place the text around an image in smarter ways.
  4. And last but not the least don’t even attempt drag and drop of a swf, it starts playing the swf in the player. May be a FOL only. But I think drag drop of only limited filetypes should be allowed. Anyways, wordpress will not accept the other filetypes.
  5. Undo functionality doesn’t work properly.
  6. And ya, I found an RTE also while dragging an HTML file
ArgumentError: The width of an HTMLControl can not be greater than 2880.at flash.html::HTMLControl/flash.html:HTMLControl::validateAndConvertDimension()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157\HTMLControl.as:1045]at flash.html::HTMLControl/set width()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157\HTMLControl.as:816]at org.airpress.component.media::HTMLMedia/::normalizeSize()
at MethodInfo-3991()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslib-28157\EventDispatcher.as:209]
at flash.html::HTMLControl/flash.html:HTMLControl::onCompleteTimer()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157\HTMLControl.as:2101]
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157\Timer.as:158]

Filed under: Blogging, flex

Clipmarks and Scribefire

I was looking for a nice easy wayto blog, which can motivate me to blog more and more. Then, I came across clipmarks (Just the best parts of the page). Clipmarks allows saving all the interesting things (text, images, videos) one finds on web. The saved clips can then be blogged, emailed and print. This is where it is useful.

This way it allows the easiest way to blog what you find on the web. Just select, clip and click the blog icon. Integration with wordpress is fairly good and thus it solves my problem. I was happy but then I found ScribeFire.

ScribeFire is for firefox users . Its a nice and tiny blog editor which sits in your browser and which allows you compose the blog from the browser itself. Unlike Clipmarks, it also allows to assign categories to your blog. Along with wordpress, it also supports livejournal and Windows live spaces also. Just try out!!!

Filed under: Blogging, Internet Tools

About the author

avatar
25, Male, living in Hyderabad Mobile Developer, working for Microsoft IDC

View Nisheet Jain's profile on LinkedIn

RSS Mobile Dev Blog

  • An error has occurred; the feed is probably down. Try again later.