[Eric] Highligthing and fileassociation
detlev
detlev at die-offenbachs.de
Fri Jul 2 19:16:51 BST 2010
On Donnerstag, 1. Juli 2010, F.A. Pinkse wrote:
> Hello Detlev,
>
>
> You are right, NASM-utf8-guessed CRLF
>
> Never thought of trying a context menu at the editor window.
>
> I choose No language on the context menu, but did not find that entry in
> the Settings.
> Am I right in thinking that you can have several *asm associatinons each
> one for a different languages with their own lexer?
Unfortunately not. An extension can be associated with just one lexer.
>
> I like using Eric. Thanks for dreaming this up it must have been a hell
> of a lot work.
I started coding it back in 2002.
>
> With best regrads,
>
>
> Frans.
>
> Op 7/1/2010 7:05 PM, detlev schreef:
> > On Mittwoch, 30. Juni 2010, F.A.Pinkse wrote:
> >> Hi Detlev,
> >>
> >> The .asm I was working on is an Assembler file for a mcu.
> >> Normally those end up all with .asm but the mnemonics changes from
> >> manufacturer/type to manufacturer/type.
> >> So I have a fike with strange highlightings in it.
> >>
> >> I work around it for now by changing the extension by hand before
> >> assembly.
> >>
> >>
> >> The strange thing is the association of *.asm is not in the list but the
> >> text gets still highlighted.
> >
> > What kind of highlighter is named in the status bar? That is probably
> > "Guessed". The behavior is, that eric first tries all built in QScintilla
> > lexers iaw the lexer association. If it can't find a suitable one, it
> > uses Pygments for highlighting. You may select an appropriate one from
> > the list of alternative languages via the editor context menu. If you
> > like what you see, you may associate this lexer with the *.asm pattern.
> >
> > Detlev
> >
> >> Frans.
> >>
> >> Op 6/30/2010 7:34 PM, detlev schreef:
> >>> On Dienstag, 29. Juni 2010, F.A.Pinkse wrote:
> >>>> Hi,
> >>>>
> >>>> I was looking and editing in another file type than .py and found it
> >>>> was highligted.
> >>>>
> >>>> The file in question has the extension .asm
> >>>>
> >>>> I looked in the prefs under File Associations but couls not found an
> >>>> entry to *.asm
> >>>>
> >>>> Did I overlook something?
> >>>>
> >>>> I also tried to amke an entry, but no success.
> >>>>
> >>>> Someone?
> >>>
> >>> You configure this in the config dialog, Editor->Highlighters->Filetype
> >>> Association page.
> >>>
> >>>> I almost forgot, where can I set the indent width for this file type?
> >>>
> >>> Indentation is a global setting and can be changed on the
> >>> Editor->General page
> >>>
> >>>
> >>>
> >>> Detlev
> >>
> >> _______________________________________________
> >> Eric mailing list
> >> Eric at riverbankcomputing.com
> >> http://www.riverbankcomputing.com/mailman/listinfo/eric
>
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list