On Wed, Apr 23, 2008 at 4:13 PM, Terry Brown <[EMAIL PROTECTED]>
wrote:

>
> Should @auto foo.css set language to CSS for that node, even though it does
> nothing else to it - i.e. treating it as plain text import wise is fine, but
> setting the language would be nice so you don't have to put it in a wrapper
> node.


I assume you are asking about .css files specifically, and not generally
about any "unknown" file type for which there is no @auto importer.

Given the importance of .css files, it would make sense to do this.  The
easy way would be to define an importer for .css, then modify

Code-->Core classes...-->@thin leoImport.py--><< class leoImportCommands
>>-->Import-->createOutline (leoImport)

to recognize this file type.  Many scanners, such as the cScanner class, can
be defined in a single node.  The ctor simply sets a few constants that
guides the general parser.  Note the 'language' argument to the base class
ctor. The general code generator uses this arg to create the @language
directive.  Care to create a branch for this?

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to