col / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

Add support for .NET source code files #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

It would be great that QLColorCode supports Microsoft .NET source code
files, such as C# (.cs), ASP.NET (.aspx) and so on (VB.Net, and why not
standard ASP files as well). :-)

What steps will reproduce the problem?
1. Select a .NET source code file
2. Hit the space bar

What is the expected output? What do you see instead?
Expected result: see the code with syntax color.
Actual result: black and white text (or just an ugly icon).

What version of the product are you using? On what operating system?
I am using version 1.0.0 on Mac OS 10.5.3 Leopard.

Please provide any additional information below.
C# files are very similar to .java files and ASP.NET files are a bit like
HTML or PHP files.

Many thanks in advance,

Al'

Original issue reported on code.google.com by Nescaf...@gmail.com on 17 Jul 2008 at 2:09

GoogleCodeExporter commented 8 years ago
I thought this was already supported, but I'll double-check for the next release

Original comment by n8gray@gmail.com on 19 Jul 2008 at 6:20

GoogleCodeExporter commented 8 years ago
Thanks!
I am not sure many people have .NET code source files on their Mac (heresy!), 
but I
thought it would not be too difficult to support them in QLColorCode, so if you 
could
do it that would be very nice. :-) 

Cheers!

Original comment by Nescaf...@gmail.com on 20 Jul 2008 at 6:53

GoogleCodeExporter commented 8 years ago
They need to be added to UTImportedTypeDeclarations.

No luck for .aspx -- 1) highlight doesn't highlight it; 2) need to detect 
language used inside .aspx file.

Original comment by dch...@gmail.com on 31 Jul 2008 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
I changed the info.plist file as explained in the Read Me file (and as shown in 
the patch-Info.plist.diff file), but I 
can't get the plugin to show .cs files. I also checked with "ml" (which appears 
in the UTImporteTypeDeclarations 
as well), and it failed to parse as well. What am I doing wrong?

Original comment by yoavhaco...@gmail.com on 9 Dec 2008 at 10:24

GoogleCodeExporter commented 8 years ago

Original comment by n8gray@gmail.com on 7 Jan 2009 at 7:46

GoogleCodeExporter commented 8 years ago
@comment 4: See the FAQ, question 5.  Hopefully that'll help.

I've committed the supplied patch.  Thanks!

Original comment by n8gray@gmail.com on 7 Jan 2009 at 9:51