Is CSV format supported as language by SyntaxEditor?

SyntaxEditor for WPF Forum

Posted 11 years ago by Christel
Version: 12.2.0573
Avatar

Hi,

Is there already a free definition language file for CSV-Format?

Thanks for answer.

 

Cheers

Comments (3)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Christel,

We don't have anything specific for it.  Isn't it just plain text?  I'm not sure what features you'd want for a CSV language.


Actipro Software Support

Posted 11 years ago by Christel
Avatar

Hi,

 yes, it is just plain text, but the file format is also defined with some general constraints:

  • consists of records (typically one record per line),
  • with the records divided into fields separated by delimiters (typically a single reserved character such as comma, semicolon, or tab; sometimes the delimiter may include optional spaces),
  • where every record has the same sequence of fields.

The wish of one of our customer is, to show this format in a "friendly" way, such as colouring the delimiters, e.g. the commas or something else.

Therefore the question.

I think, I can define a simple definition language file for this.

Thanks for your answer anyway!

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Oh correct, just make a dynamic lexer definition that groups things like text words and numbers together into a single token, whitespace into another, and things like your delimiters into another.  Then apply a style to the proper delimiter.  That will get you the syntax highlighting you want.


Actipro Software Support

The latest build of this product (v24.1.1) was released 22 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.