shakeyo / qlcolorcode

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

Actionscript .as files not sent to QLCC #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

Could you please include actionscript in the list of included files?

Name of the language : Actionscript 3
Extensions : .as
Organization : www.adobe.com

And the info.plist file of flash cs4 is attached :-)

Thanks a lot!

Original issue reported on code.google.com by vandenbo...@gmail.com on 3 Nov 2009 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
Hi - Thanks for all your work on this. I noticed that .as files are included by
default, but they don't seem to actually show up in QuickLook.

Is there some kind of setting that needs to be changed somewhere to tell 
QuickLook to
render .as files?  (QuickLook by default shows the actionscript icon rather 
than any
code at all).

Original comment by benr...@gmail.com on 7 Nov 2009 at 7:32

GoogleCodeExporter commented 9 years ago
Sorry, I just noticed the long chain of comments on your blog (on the old page
http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/) about getting 
actionscript to
work. 

Comment number 12 seemed to work for many people, but comment number 18 is what
worked for me (with snow leopard).

Thanks again for all your work. And especially with the hard time that Apple 
seems to
have given you!

Original comment by benr...@gmail.com on 7 Nov 2009 at 8:19

GoogleCodeExporter commented 9 years ago
Sorry for not responding earlier -- I've been in a crunch at work.  The issue 
is that the .as extension is 
registered by Apple for "AppleSingle" files, which is an obsolete format for 
storing resource forks.  For some 
people this doesn't cause a problem -- somehow the binding for actionscript 
wins over applesingle.  For 
others, applesingle wins and QLCC doesn't ever see .as files.

The workaround, described in comments 12/18, is to register QLCC for the 
applesingle UTI, which is either 
"public.archive.applesingle” in Leopard or “com.apple.applesingle-archive" 
in Snow Leopard.  To be safe, you 
can add both.  To do this, open up the Info.plist in QLCC and add those UTIs 
next to public.plain-text and 
public.source-code at the top.

Original comment by n8gray@gmail.com on 21 Nov 2009 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by n8gray@gmail.com on 21 Nov 2009 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by n8gray@gmail.com on 21 Nov 2009 at 6:22

GoogleCodeExporter commented 9 years ago
I'm having a weird issue with as files... The problem seems to be when the code 
has Single Comments. The issue 
is that after the single comment everything appears green and not coloured... 
I'm attaching a screenshot... it 
would be really helpful if someone finds a solution. thanks in advance

Original comment by dimmdes...@gmail.com on 11 Feb 2010 at 12:46

Attachments:

GoogleCodeExporter commented 9 years ago
I have tried to make the changes as specified here and on n8gray's blog.  
However, I still cannot get the .as files to work with QuickLook.

I placed the plugin file into ~/Library/QuickLook  (btw, do I double click the 
bundle file after I copy it ?)

I opened up the plug-in bundle file with the "Show Package Contents" command 
that appears in the context menu.  I open up the Info.plist file in a text 
editor, and added com.apple.applesingle-archive.  I save the Info.plist file.

I try to view the .as file with quick look, but to no avail.  Why doesn't it 
work?  Also, I have the latest version of XCode and I ran the disable script 
successfully to disable it's quicklook plugin.

Anybody have any clue as to why this might not be working?  I've attached my 
modified Info.plist file from the qlcc bundle.

Any help is appreciated!

Original comment by dr.aries...@gmail.com on 16 Sep 2010 at 4:21

Attachments:

GoogleCodeExporter commented 9 years ago
I forgot to mention that I am using 10.6.3 (Snow Leopard) and am running Flash 
CS5.

Original comment by dr.aries...@gmail.com on 16 Sep 2010 at 4:23

GoogleCodeExporter commented 9 years ago
I think the problem with single line comments is because Adobe Flash uses Mac 
line endings (CR) in .as files, so the plug-in sees it as a single line for 
some reason (turn on line numbering). Is there some way to change this?

Original comment by anastasi...@gmail.com on 17 Jan 2011 at 5:21

GoogleCodeExporter commented 9 years ago
The line ending issue is in the code for highlight itself not the plugin.

Original comment by reeves.87 on 17 Jul 2011 at 1:19