Notepads icon indicating copy to clipboard operation
Notepads copied to clipboard

Syntax highlighting

Open letmaik opened this issue 6 years ago • 16 comments
trafficstars

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.

letmaik avatar Jul 22 '19 07:07 letmaik

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.

0x7c13 avatar Jul 22 '19 19:07 0x7c13

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.

letmaik avatar Jul 22 '19 19:07 letmaik

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.

entdark avatar Jul 23 '19 11:07 entdark

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.

AkazaRenn avatar Jan 04 '20 15:01 AkazaRenn

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, ...)

MarcelCoding avatar Mar 07 '20 19:03 MarcelCoding

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

luojunyuan avatar Mar 26 '20 03:03 luojunyuan

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.

Frioo avatar May 22 '20 22:05 Frioo

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.

P-de-Jong avatar May 27 '20 10:05 P-de-Jong

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.

entdark avatar May 29 '20 21:05 entdark

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!

obskyr avatar Jun 08 '20 17:06 obskyr

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! :)

ahvth avatar Jul 02 '20 10:07 ahvth

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

blachawk avatar Aug 12 '20 19:08 blachawk

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!

ultravelocity avatar Nov 24 '20 19:11 ultravelocity

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?

xerz-one avatar Jun 21 '21 13:06 xerz-one

Simple syntax highlighting like Marxico does would be amazing

image

livejamie avatar Dec 31 '21 11:12 livejamie