- Thread starter
- #11
pure c doesn't have classes, hence the highlighting of "class" doesn't wotk for c, but should work for c++ and c#I'm not good at the difference
pure c doesn't have classes, hence the highlighting of "class" doesn't wotk for c, but should work for c++ and c#I'm not good at the difference
because in C# there is no highlighting for stringsC++ and C more redable then C# higlight
<option value="code=C++">C++</option>
<option value="code=C#">C#</option>
<option value="code=cpp">C++</option>
<option value="code=csharp">C#</option>
I think they can be added. We should see the code as it is highlighted in the C and do here as well.there is no highlighting for strings
never use this nor have a deeper idea about hose languages so...you need to decide what to useIt does not help?
using System;
using System.IO;
// comment
/* more
multiline
comment */
#pragma warning disable 414, 3021
public class Program
{
/// <summary>The entry point to the program.</summary>
public static int Main(string[] args)
{
Console.WriteLine("Hello, World!");
string s = @"This
""string""
spans
multiple
lines!";
dynamic x = new ExpandoObject();
x.MyProperty = 2; X = 0b01010001 + 44L;
return 0xFF;
}
}
async Task<int> AccessTheWebAsync()
{
string urlContents = await getStringTask;
return urlContents.Length;
}
internal static void ExceptionFilters()
{
try
{
throw new Exception();
}
catch (Exception e) when (e.Message == "My error") { }
}
#include <iostream>
#define IABS(x) ((x) < 0 ? -(x) : (x))
int main(int argc, char *argv[]) {
/* An annoying "Hello World" example */
for (auto i = 0; i < 0xFFFF; i++)
cout << "Hello, World!" << endl;
char c = '\n';
unordered_map <string, vector<string> > m;
m["key"] = "\\\\"; // this is an error
return -2e3 + 12l;
}
It is necessary to alter the string coloring for C#.fine, works