Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4345 UDL2 default style whitespace problem

All
open
nobody
None
1
2013-06-09
2013-06-09
Kigaruna
No

The problem: regardless of how I'll configure default style for user-defined language, it doesn't affects whitespace. Instead whitespace is formatted accordingly to global default style that is applied for .txt files

Lets say I have a simple UDL with only default style defined and select monospace Consolas 10 font for it.
Now situation 1: In global default style I set font to Consolas 8
Result: My user defined language shows everything in monospace font. everything is perfectly lined up.
Situation 2: In global default style I set some proportional font or Consolas with size other than 8
Result: My user defined language will still be consolas 8 as I defined it, but whitespace will be same as global default style, means proportional and of different size. My document looks completely messed up.

And no, I can't have Consolas 8 always set in Global defaults as I need to be able to read Asian ASCII .txt files and I have to select font that have appropriate characters.

Discussion

  • Kigaruna
    Kigaruna
    2013-06-09

    small typo, it should be:
    "Lets say I have a simple UDL with only default style defined and select monospace Consolas 8 font for it."

     
  • Kigaruna
    Kigaruna
    2013-06-09

    Also why not add "Plain text" as language with .txt extension. So it won't be the same as default. Default should be used for something undefined. but .txt should not be undefined. It should have simple style without any highlighting which uses default system font. But customizable.

     
    Last edit: Kigaruna 2013-06-09