Author Topic: editor font specific to each file type  (Read 2476 times)

Offline vineel567

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
editor font specific to each file type
« on: March 12, 2012, 09:55:59 PM »
hi all

First of thanks for HE. Very cleanly designed UI. I have a question. Is there a way we can set font of editor based on the file extension?. Usually I would like to open all .nfo files in fixed system font.

Thanks in advance.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2222
  • Karma: +37/-3
    • HippoEDIT
Re: editor font specific to each file type
« Reply #1 on: March 13, 2012, 03:53:50 AM »
You could not set font based on file extension, but you can set it based on syntax schema.
So basically, you need to copy/inherit Plain Text schema (txt_spec.xml) to new schema, rename id to something like nfo and than modify file extension used, or directly in schema or withing UI in Miscellaneous part of syntax settings.
And font can than changed in Font and Colors page.
« Last Edit: March 13, 2012, 03:55:57 AM by alex »

Offline vineel567

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: editor font specific to each file type
« Reply #2 on: March 13, 2012, 05:32:56 AM »
Thanks you