21 Jun '12, 10am

Wow, cool, your blogging platform can render line numbers with your code snippets. But could you disable that, please?

Wow, cool, your blogging platform can render line numbers with your code snippets. But could you disable that, please?

Displaying line numbers By Mislav on 21 Jun 2012 Programming blogs have code, and that’s great. But please don’t configure your blogging platform to auto-include line numbers with your code, because it looks like crap when unstyled: Instapaper Reeder for iOS Sidenote: because people will use these programs to view your content, you should embed the code directly in your post rather than pulling it in via JavaScript from an external service like Gist. Why would you need line numbers, anyway? They’re only useful if you want to call attention to a particular line. You can do that with syntax highlighting, instead. With Jekyll and pygments, it’s easy: { % highlight js hl_lines=4 % } ... { % endhighlight % } Note: I had to “escape” Liquid tags above by padding them with spaces. Result: var target = { one : 'patridge' }, source = { two : 'turtle doves' } $ . extend ( target , so...

Full article: http://mislav.uniqpath.com/2012/06/line-numbers/

Tweets

150-fps camera joins Point Grey's Flea3 USB 3.0...

tmworld.com 20 Jun '12, 11am

AR Worldwide AR RF/Microwave Instrumentation is a manufacturer and distributor of high-power, broadband amplifiers from dc...

LTA: SMRT not at fault for Circle Line disrupti...

channelnewsasia.com 22 Jun '12, 8am

SINGAPORE: Faulty power cables caused the 20 September, 2011 Circle Line (CCL) disruption, which affected nearly 27,000 co...

Travellers will soon be able to ‘fly’ across the East End

Travellers will soon be able to ‘fly’ across th...

cntraveller.com 19 Jun '12, 2pm

Travellers will soon be able to 'fly' across the East End on board The Emirates Air Line. The cable car is designed to car...

prime-numbers (0.0.1): Prime Numbers Generator

rubygems.org 17 Jun '12, 4pm

prime-numbers 0.0.1 Prime Numbers Generator install gem install prime-numbers Download Documentation Subscribe Stats Autho...

Centrotherm faces credit line issues: Due to th...

digitimes.com 18 Jun '12, 7am

Centrotherm faces credit line issues Press release, June 18; Jackie Chang, DIGITIMES [Monday 18 June 2012] Due to the cont...