0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.53k stars 470 forks source link

Syntax highlighting #74

Open letmaik opened 4 years ago

letmaik commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

Simple syntax highlighting like Marxico does would be amazing

image

Soham52 commented 2 days ago

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