# Any Idea?

**URL:** <https://www.ruby-forum.com/t/any-idea/132656>\
**Category:** Ruby\
**Created:** [March 22, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/any-idea/132656 "2008-03-22T18:33:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/any-idea/132656/1 "2008-03-22T18:33:19Z")

</div>

How to make something similar to this kind of stuff(the highlighted  
code):

[http://redhanded.hobix.com/inspect/randomNumberInAFeedForPipesMaybe.html#comments](http://redhanded.hobix.com/inspect/randomNumberInAFeedForPipesMaybe.html#comments)

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/any-idea/132656/2 "2008-03-22T20:27:57Z")

</div>

On Sat, Mar 22, 2008 at 6:33 PM, Eder Quiñones [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How to make something similar to this kind of stuff(the highlighted  
> code):

What do you mean? It grabs a random number from [random.org](http://random.org) and uses  
the builder gem to create a RSS feed for it.  
There’s a pasties link in the comments to the code.

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/any-idea/132656/3 "2008-03-22T20:32:45Z")

</div>

Thomas W. wrote:

> On Sat, Mar 22, 2008 at 6:33 PM, Eder Quiï¿½ones [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > How to make something similar to this kind of stuff(the highlighted  
> > code):
> 
> What do you mean? It grabs a random number from [random.org](http://random.org) and uses  
> the builder gem to create a RSS feed for it.  
> There’s a pasties link in the comments to the code.

Oh no, it’s the syntax highlighting.

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/any-idea/132656/4 "2008-03-22T22:50:18Z")

</div>

Hi,

On Sun, Mar 23, 2008 at 6:32 AM, Eder QuiÃ±ones [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Oh no, it’s the syntax highlighting.

Are you talking about this?  
[http://redhanded.hobix.com/images/randfeed.png](http://redhanded.hobix.com/images/randfeed.png)

In that case, you’ll need a couple of coloured pencils, a clean piece of  
paper, and a scanner (or digital camera if you’re desperate!).

1. Learn the rules of syntax highlighting for your favourite editor.  
(perhaps type the code out in that first)
2. Using the coloured pencils, reproduce the code on paper using the  
appropriate colour pencil for each code entity, as shown in your editor.
3. Scan!

There you have it! Beautiful hand-drawn syntax-highlighted code.

Cheers,  
Arlen.

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/any-idea/132656/5 "2008-03-22T23:17:37Z")

</div>

Arlen C. wrote:

> Hi,
> 
> On Sun, Mar 23, 2008 at 6:32 AM, Eder QuiÃ±ones [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Oh no, it’s the syntax highlighting.
> 
> Are you talking about this?  
> [http://redhanded.hobix.com/images/randfeed.png](http://redhanded.hobix.com/images/randfeed.png)
> 
> In that case, you’ll need a couple of coloured pencils, a clean piece of  
> paper, and a scanner (or digital camera if you’re desperate!).
> 
> 1. Learn the rules of syntax highlighting for your favourite editor.  
> (perhaps type the code out in that first)
> 2. Using the coloured pencils, reproduce the code on paper using the  
> appropriate colour pencil for each code entity, as shown in your editor.
> 3. Scan!
> 
> There you have it! Beautiful hand-drawn syntax-highlighted code.
> 
> Cheers,  
> Arlen.

Nah, really? :P, I believe that I need to create a beautiful [a-zA-Z0-9]  
pencil images, then Parse some code and replace each character for the  
it’s image, uh.

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/any-idea/132656/6 "2008-03-22T23:23:22Z")

</div>

On Sat, Mar 22, 2008 at 4:45 PM, Arlen C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In that case, you’ll need a couple of coloured pencils, a clean piece of  
> paper, and a scanner (or digital camera if you’re desperate!).
> 
> 1. Learn the rules of syntax highlighting for your favourite editor.  
> (perhaps type the code out in that first)
> 2. Using the coloured pencils, reproduce the code on paper using the  
> appropriate colour pencil for each code entity, as shown in your editor.
> 3. Scan!
> 
> There you have it! Beautiful hand-drawn syntax-highlighted code.

Nah, you use a tablet, write a bunch of stuff down for your  
hand-writing style, and have it randomly pick from that your i’s and  
t’s, etc. 🙂

Todd

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 22, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/any-idea/132656/7 "2008-03-22T22:56:49Z")

</div>

eder, there is a gem called syntax

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 23, 2008, 2:06am UTC](https://www.ruby-forum.com/t/any-idea/132656/8 "2008-03-23T02:06:05Z")

</div>

Arlen C. wrote:

> In that case, you’ll need a couple of coloured pencils, a clean piece of  
> Cheers,  
> Arlen.

Or you could use a word processing program that allows you to color  
words and a font like Scratch or Scribble.

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [March 23, 2008, 8:58am UTC](https://www.ruby-forum.com/t/any-idea/132656/9 "2008-03-23T08:58:03Z")

</div>

On Sat, Mar 22, 2008 at 8:05 PM, Michael W. Ryder  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Or you could use a word processing program that allows you to color  
> words and a font like Scratch or Scribble.

Or use captcha software.

Todd
