Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Break lines on specific character #278

Closed
MrRadar opened this issue Jun 4, 2013 · 3 comments
Closed

Feature Request: Break lines on specific character #278

MrRadar opened this issue Jun 4, 2013 · 3 comments

Comments

@MrRadar
Copy link

MrRadar commented Jun 4, 2013

It would be quite handy to break lines on a specific character, e.g. for JSON-Arrays, CSV-data,..., if the user wants to assure that there's only one value per line.

@bitwiseman
Copy link
Member

Please add examples.

@MrRadar
Copy link
Author

MrRadar commented Jun 5, 2013

Example:

"myValues": ["value_1",
"value_2",
"value_3",
"value_4", "value_5",
"value_6",
"value_7"]

The line containing "value_4" and "value_5" should break after "value_4" if the user wants to. (I would recommend an additional checkbox option containing a checkbox to enable the linebreak-feature and also containing a small textfield to let the user specify the linebreak-character (In this case it would be a comma (","), but for CSV-data it would be a semicolon (";"))

@bitwiseman
Copy link
Member

The comma aspect of this is basically the covered by #245 and #114. So, there's obvious interest there.

I'm not sure I understand the CSV aspect, since a javascript file wouldn't contain CSV. Can you give an example of this?

FYI, you can use markdown with backticks to make the code render in monospace and with syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants