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

Syntax highlighting #74

Open
letmaik opened this issue Jul 22, 2019 · 16 comments
Open

Syntax highlighting #74

letmaik opened this issue Jul 22, 2019 · 16 comments

Comments

@letmaik
Copy link

letmaik commented Jul 22, 2019

It would be good if syntax highlighting was supported.

My current go-to notepad replacement is http://www.flos-freeware.ch/notepad2.html which is blazingly fast, has syntax highlighting, but is not maintained anymore.

@0x7c13
Copy link
Owner

0x7c13 commented Jul 22, 2019

I do not have plan to add syntax highlighting at this moment. I wanted to keep Notepads as Notepad, meaning everyone can use it to write notes, edit config on the fly but not to use it as a coding tool. You should probably use VS Code or Notepad++ in these kind of scenarios. Another reason I do not want to add syntax highlight is that it takes CPU resources and might end up increasing app launch time. It also makes it hard to deal with large files.

@letmaik
Copy link
Author

letmaik commented Jul 22, 2019

Please look at http://www.flos-freeware.ch/notepad2.html. It can deal with large files and has no issues with syntax highlighting. For me it's a deal-breaker to be honest as syntax highlighting is standard by now even in simple editors.

@entdark
Copy link

entdark commented Jul 23, 2019

Please look at http://www.flos-freeware.ch/notepad2.html. It can deal with large files and has no issues with syntax highlighting. For me it's a deal-breaker to be honest as syntax highlighting is standard by now even in simple editors.

You are trying to crack nuts with a sledgehammer.
Use that notepad2 if it fits your needs, or any other advanced editor like Notepad++ or Sublime Text.

@AkazaRenn
Copy link

I would really like to see if there can be support for syntax highlighting for formats of config files like JSON and YAML, that's not to use Notepads as a programming tool but it would really help when using it to edit configs.

@MarcelCoding
Copy link

My Feature request from #326

Syntax Highlightning

Is your feature request related to a problem? Please describe.

It would be cool if configuration formats such as YAML or XML were provided with syntax highlighting.

Describe the solution you'd like

Syntax highlighting for configuration formats. (YAML, XML, ...)

@luojunyuan
Copy link

About the performance maybe we can add this as a option feature. Not a coding tool but I think It would be nice to read

@Frioo
Copy link

Frioo commented May 22, 2020

I think syntax highlighting is crucial.
It would not make this project a code editor, but editing json, xml and other configuration files
is much easier with some basic highlighting!
Don't get me wrong but - even Discord (a voip/chat app) support syntax highlighting in messages!
It could be optional, of course, but please consider it if possible.

@P-de-Jong
Copy link

I agree with @Frioo and @AkazaRenn
I don't use any notepad application for really editing code, but highlighting is very useful even when just editing a JSON or other files.

@entdark
Copy link

entdark commented May 29, 2020

Don't get me wrong but - even Discord (a voip/chat app) support syntax highlighting in messages!
It could be optional, of course, but please consider it if possible.

Discord is basically a web-page that definitely use some predefined syntax highlighting js-framework. So it's a bad comparison: they did not put much effort to add that.

@obskyr
Copy link

obskyr commented Jun 8, 2020

A lack of syntax highlighting is the only thing keeping me from using Notepads – it's pretty much perfect, except for the fact that editing XML and one-off bash scripts and such is impractical due to a lack of syntax highlighting!

@ahvth
Copy link

ahvth commented Jul 2, 2020

I am using this as my notepad replacement regardless, but if it had syntax highlighting it would also fully replace Notepad++ for me!

I love that you don't want this to be a replacement for VSCode, atom, sublime or whatever, that space is crowded enough, but syntax highlighting would still be nice! :)

@blachawk
Copy link

blachawk commented Aug 12, 2020

I agree too the comments on here AND with the stance of the owners of the project. I would at least beg in mercy for JavaScript syntax highlighting fully to the Markdown syntax area, sense HTML and CSS highlighting are already implemented and work great. Pretty-Pretty-Please!!!

i.e.

```js
 Works partially

@ultravelocity
Copy link

I have to agree with the others. Notepads would be the perfect replacement for me if it had syntax highlighting. Of course I use other more appropriate tools for development, but every once in awhile I open a ini, json, xml, sql, js, html, or even cs file (currently I use notepad2), and the highlighting is tremendously useful. Perhaps a fork should be considered if this isn't a priority.

For now I use Notepad2 with Stardock Groupy for tabs, but it's not very pretty!

@xerz-one
Copy link

xerz-one commented Jun 21, 2021

I wonder what the right approach to implement this would be — perhaps with a fork of an existing library like thomasjo/highlight or elvirbrk/NoteHighlight2016 would suffice? Maybe with a C(++) library like saalen/highlight?

@livejamie
Copy link

Simple syntax highlighting like Marxico does would be amazing

image

@Soham52
Copy link

Soham52 commented Jul 5, 2024

@0x7c13 Do you still have no plans to add this? Could have been a really great optional feature :(

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

No branches or pull requests