Syntax Highlighting Now Available on DIC!

  • (6 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6

75 Replies - 10027 Views - Last Post: 05 October 2008 - 05:08 AM

#57 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5615
  • View blog
  • Posts: 14,693
  • Joined: 18-April 07

Re: Syntax Highlighting Now Available on DIC!

Posted 28 February 2008 - 11:51 AM

Hi Chris / Josh.... After several days of using the new highlighting, I thought I would mention a few problems I have run into. They appear to be fine without the highlighting but with the highlighting it mimics the behavior of code that is not in a code block.

1) Try putting a ;) in double slash comment. It results in the img source being displayed instead.

// See how happens with the winking smilie? ;)/>



2) I also notice that if you put in something like an "r" in parenthesis, which could be the case if you are calling a function and the parameter is called "r", it results in the register symbol ® being displayed which if copied into code might be a problem.

Do we get an ®?



I assume this will also work for a "c" in parenthesis results in ©.

Just a couple of bugs. But the highlighting is great. Still loving it. :)
Was This Post Helpful? 0
  • +
  • -

#58 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1982
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Syntax Highlighting Now Available on DIC!

Posted 28 February 2008 - 12:23 PM

Anytime you see smilies in the code, you need to uncheck the "emoticons" or "enable smilies" before you make the post.
Was This Post Helpful? 0
  • +
  • -

#59 MitkOK   User is offline

  • D.I.C Regular
  • member icon

Reputation: 33
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Syntax Highlighting Now Available on DIC!

Posted 28 February 2008 - 10:40 PM

And what about Ruby in snippet highlight mode ?

This post has been edited by MitkOK: 28 February 2008 - 10:40 PM

Was This Post Helpful? 0
  • +
  • -

#60 Nykc   User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 740
  • View blog
  • Posts: 8,654
  • Joined: 14-September 07

Re: Syntax Highlighting Now Available on DIC!

Posted 28 February 2008 - 11:07 PM

Yes ruby is available.
Was This Post Helpful? 0
  • +
  • -

#61 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5615
  • View blog
  • Posts: 14,693
  • Joined: 18-April 07

Re: Syntax Highlighting Now Available on DIC!

Posted 28 February 2008 - 11:09 PM

View Postskyhawk133, on 28 Feb, 2008 - 11:23 AM, said:

Anytime you see smilies in the code, you need to uncheck the "emoticons" or "enable smilies" before you make the post.


But maaaaybe I like smilies in the rest of my post but not in my code! Damn it man, why do you have to make this so difficult!?!?! hehe jk. I guess I will uncheck the emoticon checkbox. :(
Was This Post Helpful? 0
  • +
  • -

#62 bhandari   User is offline

  • D.I.C Addict
  • member icon

Reputation: 9
  • View blog
  • Posts: 754
  • Joined: 31-January 08

Re: Syntax Highlighting Now Available on DIC!

Posted 29 February 2008 - 05:54 AM

please provide it in blogs too.
The old code tags work there but not the new one.
I am dying to use it in my blog on </DIC>. It will definetly make it a rich experience to use blogs on </DIC>
Was This Post Helpful? 0
  • +
  • -

#63 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Syntax Highlighting Now Available on DIC!

Posted 29 February 2008 - 07:04 AM

View Postskyhawk133, on 28 Feb, 2008 - 11:23 AM, said:

Anytime you see smilies in the code, you need to uncheck the "emoticons" or "enable smilies" before you make the post.


Take note, DIC denizens, this is what is called an ugly hack.

It is analogous to: Patient says "Doctor, it hurts when I do this." To which doctor replies, "then don't do that."

You will find many Microsoft Knowledge base articles that follow the same logic. This makes it an industry standard practice, so we're not supposed to mock it. ;)
Was This Post Helpful? 0
  • +
  • -

#64 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1982
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Syntax Highlighting Now Available on DIC!

Posted 29 February 2008 - 08:16 AM

LOL. Thanks for that ;)
Was This Post Helpful? 0
  • +
  • -

#65 MitkOK   User is offline

  • D.I.C Regular
  • member icon

Reputation: 33
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Syntax Highlighting Now Available on DIC!

Posted 01 March 2008 - 12:50 AM

View PostNykc, on 29 Feb, 2008 - 08:07 AM, said:

Yes ruby is available.

I know ruby is available when posting, but missing in the drop-down menu in "Snippets" ...
Was This Post Helpful? 0
  • +
  • -

#66 joshthejest   User is offline

  • New D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 32
  • Joined: 26-February 08

Re: Syntax Highlighting Now Available on DIC!

Posted 03 March 2008 - 09:12 PM

I am behind on this topic, but AWESOME!!! I was wondering if it was possible... it is! Hooray!
Was This Post Helpful? 0
  • +
  • -

#67 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1982
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Syntax Highlighting Now Available on DIC!

Posted 03 March 2008 - 09:59 PM

no dice on the blogs. I'll get with the developer and see if the next version of IPB supports the custom BBCode in the blogs.
Was This Post Helpful? 0
  • +
  • -

#68 bhandari   User is offline

  • D.I.C Addict
  • member icon

Reputation: 9
  • View blog
  • Posts: 754
  • Joined: 31-January 08

Re: Syntax Highlighting Now Available on DIC!

Posted 03 March 2008 - 11:26 PM

that is really good news :bananaman:
Was This Post Helpful? 0
  • +
  • -

#69 bhandari   User is offline

  • D.I.C Addict
  • member icon

Reputation: 9
  • View blog
  • Posts: 754
  • Joined: 31-January 08

Re: Syntax Highlighting Now Available on DIC!

Posted 04 March 2008 - 06:11 AM

and thanks for removing copy to clipboard
Was This Post Helpful? 0
  • +
  • -

#70 Louisda16th   User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: Syntax Highlighting Now Available on DIC!

Posted 06 March 2008 - 03:04 AM

I remember seeing a "Copy" option in the code box in the beginning. Its not there now. :(
Was This Post Helpful? 0
  • +
  • -

#71 Jayman   User is offline

  • Student of Life
  • member icon

Reputation: 423
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Syntax Highlighting Now Available on DIC!

Posted 06 March 2008 - 11:51 AM

Had to remove that function, as it was putting characters in the code copied to the clipboard. Which in turn created problems when putting it in an editor.

Just click the 'View Plain' and copy and paste from there.
Was This Post Helpful? 0
  • +
  • -

  • (6 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6