Menu

#127 Improved syntax highlighting for txt-Files

v1.1.x
closed
None
v1.1.0
New Functionality
2017-02-14
2017-01-23
Erik Hänel
No

It should be available to highlight txt-Files just like the automatic markup here at sourceforge.

Analysis:
Depending on the actual desired functionality this can be either achieved by only writing a new custom lexer, which can interpret something like *SOMETEXT* and **SOMETEST**, where the asterisks should be printed in light grey. The difficulty will probably be headlines, but they sure can be solved somehow. For more advanced features like automatic enumeration, etc. custom functions are necessary, which detect the last line's status.

Implementation:
The functionality was implemented using a new custom lexer, which recognizes *, _ and - as modifiers, and a new indicator style transforming the - strikethrough style to actually red striked text. This functionality may be activated using the menu item in the "view" menu.

Documentation:
Probably needed. Currently applied using the tooltips of the view menu.

Tests:
Syntax hightlighting works as expected. Further desired changes will be tracked with a new ticket.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-01-23
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-01-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     It should be available to highlight txt-Files just like the automatic markup here at sourceforge.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-01-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     It should be available to highlight txt-Files just like the automatic markup here at sourceforge.
    
     **Analysis:**
    +Depending on the actual desired functionality this can be either achieved by only writing a new custom lexer, which can interpret something like `*SOMETEXT*` and `**SOMETEST**`, where the asterisks should be printed in light grey. The difficulty will probably be headlines, but they sure can be solved somehow. For more advanced features like automatic enumeration, etc. custom functions are necessary, which detect the last line's status.
    
     **Implementation:**
    
     
  • Erik Hänel

    Erik Hänel - 2017-02-01
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-02-02
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     Depending on the actual desired functionality this can be either achieved by only writing a new custom lexer, which can interpret something like `*SOMETEXT*` and `**SOMETEST**`, where the asterisks should be printed in light grey. The difficulty will probably be headlines, but they sure can be solved somehow. For more advanced features like automatic enumeration, etc. custom functions are necessary, which detect the last line's status.
    
     **Implementation:**
    +The functionality was implemented using a new custom lexer, which recognizes `*`, `_` and `-` as modifiers, and a new indicator style transforming the `-` strikethrough style to actually red striked text. This functionality may be activated using the menu item in the "view" menu.
    
     **Documentation:**
    +Probably needed. Currently applied using the tooltips of the view menu.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-02-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     Probably needed. Currently applied using the tooltips of the view menu.
    
     **Tests:**
    +Syntax hightlighting works as expected. Further desired changes will be tracked with a new ticket.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB