Posted By: TommyCarlier | Sep 2nd, 2008 @ 5:44 AM
page 1 of 3
Comments: 58 | Views: 971
TommyCarlier
TommyCarlier
I want my scalps!
class Tommy : IHappy<BR>{<BR>    public void Smile()<BR>    {<BR>        Console.WriteLine(":-)");<BR>    }<BR>}<BR>
Bas
Bas
It finds lightbulbs.

What! How! Why?

Dr Herbie
Dr Herbie
Horses for courses
Hey, if you could get VS to show smilies (and write them to the console), then I'd be really impressed. Tongue Out

Herbie
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Now it should just disable smilies inside those blocks.

<BR>public void Foo()<BR>{<BR>    // Let's see if contextual keywords work<BR>    var x = from x in someThing<BR>                where x < 10<BR>                select x;<BR>}


And they don't, as I expected. Smiley
Ooh, 10pt Consolas; I approve!
Bas
Bas
It finds lightbulbs.
<BR>class Bas : Tentative, IEasilyPleasable<BR>{<BR>    public Bas()<BR>    {<BR>    }<BR><BR>    public bool IEasilyPleasable:IsPleased<BR>    {<BR>        get { return true; }<BR>    }<BR>}<BR>
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Valid C# that is not. Tongue Out
Bas
Bas
It finds lightbulbs.
Correct. But since I always Alt+F10 to implement interfaces, I chose not to care.
Duncanma
Duncanma
Just Coding for Fun...
strange...  I'll look into that, perhaps I've accidentally done the code *after* the smilely replacement... the smiley code is supposed to ignore anything within

<br><pre> ... </pre><br>

Minh
Minh
WOOH! WOOH!
Doesn't "Tentative" has its own implementation of "IsPleased"?

I think you should just override that instead of implementing another interface.
Duncanma
Duncanma
Just Coding for Fun...
language options: CSHARP (C#), HTML, SQL, VB (for VB, VB.NET, etc...), JS (JavaScript), PSH  (Powershell)

<BR>Get-Member AndyC | Where $PowershellSupported -eq $true | Celebrate<BR>


Smiley
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
public static void Main(String[] args) {<br>;)<br>}

Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...

<BR>template<typename T><BR>bool IsCPlusPlusSupported(const T &syntaxHighlighter)<BR>{<BR>    return syntaxHighlighter.Supports(L"C++");<BR>}<BR>


And I guess the answer to that is no.

JoshRoss
JoshRoss
A righteous infliction of retribution manifested by an appropriate agent.
 <BR>Private Sub Wow() <BR>'This is really great guys. Keep up the good work! <BR>dim x = 1/0 <BR>end sub 

 <BR>CREATE view nums as    <BR>with numbers as (select n=0 union all select n + 1 from numbers)    <BR>select top 100 * from numbers<BR>
Duncanma
Duncanma
Just Coding for Fun...
doh! I'll take a look at that....

Giving credit where credit's due: source code formatting code from http://www.manoli.net/csharpformat/
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Too bad that doesn't support C++. Random cool C++snippet:

template<int x, int y>
struct gcd
{
    static const int value = gcd<y, x % y>::value;
};

template<int x>
struct gcd<x, 0>
{
    static const int value = x;
};
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
public static void Main(String[] args) {<br>  Console.WriteLine("☺");<br>}

stevo_
stevo_
Human after all
<P>var a = b as C;<BR>C c = (C)b;<BR>bool d = b is C;</P>
Zeus
Zeus
Why is the caption missing??
<blink>Great!</blink>

vesuvius
vesuvius
Das Glasperlenspiel
Testing
Bas
Bas
It finds lightbulbs.

Nah, it doesn't, because I also have a Tentative alter-ego that isn't easily pleased at all. It usually has to deal with Windows Live applications.

Duncanma
Duncanma
Just Coding for Fun...
I believe it could be extended to support C++ ... not sure I'll have the time, but if someone made a C++ formatter that works with the original source then I'd be happy to include it in our version.
page 1 of 3
Comments: 58 | Views: 971
Microsoft Communities