<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 October 2013 00:46, Dennis Drescher <span dir="ltr"><<a href="mailto:dennis@dreschers.info" target="_blank">dennis@dreschers.info</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I am new to the Geany IDE but I am really liking it. I am using it
    in Ubuntu. One particular application I want to adapt if for
    requires color highlighting. I am tying to work through the user
    manual (
    
    <a href="http://www.geany.org/manual/current/index.html#lexer-filetype" target="_blank">http://www.geany.org/manual/current/index.html#lexer-filetype</a>)
    but admittedly, it is a steep learning curve for me. I have created
    color highlighting/syntax for this same application in Gedit but
    their system is totally different. I think Geany will be a much
    better environment if I can get color highlighting working.<br></div></blockquote><div><br></div><div>You need to read the section on making custom filetypes.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000">
    <br>
    I created a custom filetypes file (a copy of the filetypes.latex)
    and put it in the .config/geany/filedefs folder. I added the type to
    the filedefs_extensions.conf and I am trying to edit the
    filetypes.usfm to get the color highlighting to start working. To
    start, I have edited these two sections:<br>
    <br>
    [keywords]<br>
    # all items must be in one line<br>
    primary=\id \h \toc1 \mt1<br></div></blockquote><div><br></div><div>If you use the latex lexer you don't need to put the backslashes.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000">
    <br>
    [settings]<br>
    # default extension used when saving files<br>
    extension=usfm<br>
    <br></div></blockquote><div><br></div><div>You need to specify a lexer_filetype=latex setting so Geany knows how to identify parts of your file to highlight (assuming you copied filetypes.latex because latex is similar).</div>

<div><br></div><div>Regards</div><div>Lex</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    This is a sample of data I am testing with:<br>
    <br>
    \id cid
<br>
    \h heading
<br>
    \toc1 Table of Contents
<br>
    \mt1 Main Title
<br>
        <br>
    So far I have not had any success getting any markers to "light up".
    Any suggestions on what I should do next. Thanks in advance for any
    help anyone can give.<br>
    <br>
    Kind regards,<br>
    <br>
    Dennis<br>
    <br>
    
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>