Re: [gedit-list] Problems with mime



I am not very familiar with lang files, but it seems you use old syntax.
 I attach a small file containing only a few keywords using "new" syntax.

This file works fine on my debian sid box (Gedit 2.22.3, gtksourceview
2.2.2)

chuchi wrote:
> This doen't solve my problem :(
> 
> 
> El lun, 15-09-2008 a las 12:05 +0200, Sylvain Archenault escribió:
>> Hi,
>>
>> The first problem I noticed is that you omit the <metadata> tag in your
>> lang file. It should be something like this :
>>
>> <metadata>
>>   <property name="mimetypes">text/application-extension-uv</property>
>>   <property name="globs">*.uv</property>
>> </metadata>
>>
>> Check other lang files in /usr/share/gtksourceview-2.0/language-specs to
>> see other options.
>>
>> Sylvain.
>>
>> chuchi wrote:
>> > Hi all,
>> > 
>> >     I have problems updating my mime-types database... I attach my two
>> > files, the lang and the mime type files. I put the .lang file into
>> > ~/.local/share/gtksourceview-2.0/language-specs and the mime file into
>> > ~/.local/share/mime/packages
>> > 
>> >     I have executed update-mime-database mime from ~/.local/share and
>> > all works fine then I restart my computer.
>> > 
>> >     If I start Gedit, I can see the Basic UV language and all works fine
>> > but I must to set the language by hand instead of gedit automatically
>> > when I open a *.uv file.
>> > 
>> > Can you help me?
>> > 
>> > Regards,
>> >     Perriman
>> > 
>> >  
>> > Pulse para ir al sitio web <http://www.quiter.com> * *
>> > *Jesús Barbero Rodríguez*
>> > /Departamento de Análisis y Programación - Desarrollo tecnológico/
>> > Zoco Gran Santander, 1ª Planta ■ 39011 Peñacastillo ■ Santander ■ ESPAÑA
>> > 
>> > Tel.: +34 902 233 323 ■ Fax: +34 902 234 280
>> > 
>> > 
>> > 
>> > 
>> > *AVISO LEGAL:* Este mensaje contiene información destinada
>> > exclusivamente al usuario de destino, pudiendo contener información
>> > confidencial o protegida legalmente. Si, por un error de envío o
>> > transmisión, ha recibido este mensaje y usted no es el destinatario del
>> > mismo, por favor, notifique de este hecho al remitente y no use,
>> > informe, distribuya, imprima, copie o difunda este mensaje bajo ningún
>> > medio . Cualquier opinión en él contenida, es exclusiva de su autor y no
>> > representa necesariamente la opinión de Quiter Servicios Informáticos, S.L.
>> > 
>> > *LEGAL WARNING: *This e-mail and any attachment, contain information
>> > intended solely for the addressee and may contain confidential
>> > information or legally protected data. If you are not the intended
>> > recipient, please notify the sender and do not use, disclose,
>> > distribute, copy, print or rely on this e-mail under any circumstances.
>> > The views and opinions expressed are the authorŽs own and do not
>> > necessarily reflect those of Quiter Servicios Informáticos, S.L.  
>> > 
>> > 
>> > 
>> > 
>> > 
>> > ------------------------------------------------------------------------
>> > 
>> > _______________________________________________
>> > gedit-list mailing list
>> > gedit-list gnome org <mailto:gedit-list gnome org>
>> > http://mail.gnome.org/mailman/listinfo/gedit-list
>>
>> _______________________________________________
>> gedit-list mailing list
>> gedit-list gnome org <mailto:gedit-list gnome org>
>> http://mail.gnome.org/mailman/listinfo/gedit-list
>  
> Pulse para ir al sitio web <http://www.quiter.com> * *
> *Jesús Barbero Rodríguez*
> /Departamento de Análisis y Programación - Desarrollo tecnológico/
> Zoco Gran Santander, 1ª Planta ■ 39011 Peñacastillo ■ Santander ■ ESPAÑA
> 
> Tel.: +34 902 233 323 ■ Fax: +34 902 234 280
> 
> 
> 
> 
> *AVISO LEGAL:* Este mensaje contiene información destinada
> exclusivamente al usuario de destino, pudiendo contener información
> confidencial o protegida legalmente. Si, por un error de envío o
> transmisión, ha recibido este mensaje y usted no es el destinatario del
> mismo, por favor, notifique de este hecho al remitente y no use,
> informe, distribuya, imprima, copie o difunda este mensaje bajo ningún
> medio . Cualquier opinión en él contenida, es exclusiva de su autor y no
> representa necesariamente la opinión de Quiter Servicios Informáticos, S.L.
> 
> *LEGAL WARNING: *This e-mail and any attachment, contain information
> intended solely for the addressee and may contain confidential
> information or legally protected data. If you are not the intended
> recipient, please notify the sender and do not use, disclose,
> distribute, copy, print or rely on this e-mail under any circumstances.
> The views and opinions expressed are the authorŽs own and do not
> necessarily reflect those of Quiter Servicios Informáticos, S.L.  
> 
> 
> 
> 

<?xml version="1.0" encoding="UTF-8"?>

<language id="uv" _name="Basic UV" version="2.0" _section="Sources">
  <metadata>
    <property name="mimetypes">text/application-extension-uv</property>
    <property name="globs">*.uv</property>
  </metadata>

  <styles>
    <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  </styles>

  <definitions>

    <context id="keywords" style-ref="keyword">
	<keyword>if</keyword>
	<keyword>then</keyword>
	<keyword>else</keyword>

	<keyword>readnext</keyword>

	<keyword>and</keyword>
	<keyword>not</keyword>
	<keyword>or</keyword>
	<keyword>xor</keyword>
    </context>

    <context id="uv">
        <include>
          <context ref="def:shell-like-comment"/>
          <context ref="def:string"/>
          <context ref="def:single-quoted-string"/>
	  <context ref="keywords"/>
        </include>
    </context>

  </definitions>

</language>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]