Syntax Highlighting Now Available on DIC!

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

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

#45 Nayana   User is offline

  • DIC Hawk - 나야나 नयन:
  • member icon

Reputation: 32
  • View blog
  • Posts: 824
  • Joined: 14-November 07

Re: Syntax Highlighting Now Available on DIC!

Posted 23 February 2008 - 02:45 AM

There is a bug. DIC seems to be "enhancing" the text before it reaches the colourising script.

E.g. the difference between [*code]B*)[*/code] and [*code=csharp]B*)[*/code]: without *s of course

B)/>


B)


This post has been edited by Nayana: 23 February 2008 - 02:46 AM

Was This Post Helpful? 0
  • +
  • -

#46 skyhawk133   User is offline

  • Head DIC Head
  • member icon

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

Re: Syntax Highlighting Now Available on DIC!

Posted 23 February 2008 - 07:18 AM

When you post things like B) make sure you disable emoticons in your post before posting. It's a checkbox in the post itself. It will keep it from trying to parse the emoticons.
Was This Post Helpful? 0
  • +
  • -

#47 Nayana   User is offline

  • DIC Hawk - 나야나 नयन:
  • member icon

Reputation: 32
  • View blog
  • Posts: 824
  • Joined: 14-November 07

Re: Syntax Highlighting Now Available on DIC!

Posted 23 February 2008 - 09:18 AM

OK. Thank you.
Was This Post Helpful? 0
  • +
  • -

#48 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 24 February 2008 - 09:51 AM

Now can we have some sort of an online compiler that compiles the code as well? :P. With improvements like this I can see that this will happen as well :).
Was This Post Helpful? 0
  • +
  • -

#49 skyhawk133   User is offline

  • Head DIC Head
  • member icon

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

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 10:11 AM

I was actually in talks with a company who provides online compilers, but we could not reach an agreement on a buy out of their software.
Was This Post Helpful? 0
  • +
  • -

#50 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5612
  • View blog
  • Posts: 14,686
  • Joined: 18-April 07

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 10:15 AM

I am not too sure it would be that great of advantage to have online compilers. People, new or old, should be able to learn to use a standard compiler on their own computer. They have gotten relatively easy to install and use over the years. I see no "huge" benefit for having online compilers here.

Just my two cents. :)
Was This Post Helpful? 0
  • +
  • -

#51 Bench   User is offline

  • D.I.C Lover
  • member icon

Reputation: 945
  • View blog
  • Posts: 2,464
  • Joined: 20-August 07

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 10:39 AM

Comeau's online 'try it out' C/C++ compiler is great for checking small snippets of code when I haven't got a compiler at hand. I usually turn to it whenever I want to check that MSVC++ is behaving itself too :)

(Comeau's error messages are sometimes easier to understand too)
Was This Post Helpful? 0
  • +
  • -

#52 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 24 February 2008 - 10:41 AM

View Postskyhawk133, on 24 Feb, 2008 - 10:41 PM, said:

I was actually in talks with a company who provides online compilers, but we could not reach an agreement on a buy out of their software.

lol. There's a lot I need to learn. Upto this point I thought there was no such thing as an online compiler :D!
Was This Post Helpful? 0
  • +
  • -

#53 skyhawk133   User is offline

  • Head DIC Head
  • member icon

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

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 11:06 AM

They aren't really "online compilers" they are web interfaces to gcc usually.
Was This Post Helpful? 0
  • +
  • -

#54 c0mrade   User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 412
  • Joined: 16-November 07

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 10:11 PM

You know what would be cool? If the highlighting was automatically set based on what forum it was posted in...

if(theforum == "Java") {
     System.out.println("code=java");
}else{
     System.out.println("code="anotherlanguage");
}

System.out.println("cool");


Was This Post Helpful? 0
  • +
  • -

#55 born2c0de   User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 187
  • View blog
  • Posts: 4,673
  • Joined: 26-November 04

Re: Syntax Highlighting Now Available on DIC!

Posted 24 February 2008 - 11:59 PM

Love it.
Could you add syntax highlighting for Assembly as well?
Was This Post Helpful? 0
  • +
  • -

#56 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 27 February 2008 - 11:50 PM

:( :unsure: :devil: its isn't working in </DIC>blogs :v: :v:
Was This Post Helpful? 0
  • +
  • -

#57 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5612
  • View blog
  • Posts: 14,686
  • 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: 1981
  • 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
  • +
  • -

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