Posted By: TommyCarlier | Sep 2nd, 2008 @ 5:44 AM
page 1 of 3
Comments: 58 | Views: 964
TommyCarlier
TommyCarlier
Where is my mind?
class Tommy : IHappy
{
    public void Smile()
    {
        Console.WriteLine(":-)");
    }
}
Bas
Bas
It finds lightbulbs.

What! How! Why?

Dr Herbie
Dr Herbie
Half the population have below average IQ
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
Gravity is a CIA plot to keep us on Earth.
Now it should just disable smilies inside those blocks.

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


And they don't, as I expected. Smiley
Ooh, 10pt Consolas; I approve!
Bas
Bas
It finds lightbulbs.
class Bas : Tentative, IEasilyPleasable
{
    public Bas()
    {
    }

    public bool IEasilyPleasable:IsPleased
    {
        get { return true; }
    }
}
Sven Groot
Sven Groot
Gravity is a CIA plot to keep us on Earth.
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


<pre> ... </pre>

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)

Get-Member AndyC | Where $PowershellSupported -eq $true | Celebrate


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

Sven Groot
Sven Groot
Gravity is a CIA plot to keep us on Earth.

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


And I guess the answer to that is no.

JoshRoss
JoshRoss
JoshRoss
 
Private Sub Wow() 
'This is really great guys. Keep up the good work! 
dim x = 1/0 
end sub 

 
CREATE view nums as    
with numbers as (select n=0 union all select n + 1 from numbers)    
select top 100 * from numbers
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
Gravity is a CIA plot to keep us on Earth.
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) {
  Console.WriteLine("☺");
}

stevo_
stevo_
Maim that tune
var a = b as C;
C c = (C)b;
bool d = b is C;
Zeus
Zeus
Why is the caption missing??
<blink>Great!</blink>

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: 964
Microsoft Communities