Ekopalypse / EnhanceAnyLexer

Notepad++ plugin that adds an additional foreground colouring option to existing lexers
MIT License
15 stars 2 forks source link

Add to readme file, a description of what a lexer is and how that applies in the context of notepad++ #7

Closed shodanx2 closed 11 months ago

shodanx2 commented 11 months ago

Description says

"Notepad++ plugin that adds an additional foreground colouring option to existing lexers"

Leaves the reader with the question what is a lexer unanswered

Google will give you 50 pages of reading

https://en.wikipedia.org/wiki/Lexical_analysis https://dev.to/cad97/what-is-a-lexer-anyway-4kdo https://www.quora.com/What-is-the-difference-between-a-lexer-and-a-parser https://stackoverflow.com/questions/11376089/what-is-the-purpose-of-a-lexer https://medium.com/young-coder/how-i-wrote-a-lexer-39f4f79d2980 https://datacadamia.com/code/compiler/lexer

None of which are about colouring options

So I suggest adding a 1 to 5 lines of description on what does this actually do !

Ekopalypse commented 11 months ago

How about using this?

Notepad++ plugin that adds an additional foreground coloring option to existing lexers.
This means that you can define regular expressions to highlight parts of text/code, in addition to what standard lexers, such as those for Python, C, Rust, UDL ... do.

This doesn't really explain what lexers are in terms of npp/scintilla, but hopefully what this plugin offers or is intended for.

shodanx2 commented 11 months ago

The reason why I posted this, is that I was going through the entire list of all notepad++ plugins, trying to figure out what each does and which one do I want. And the description baffled me and I almost fell into the "what is a lexer" rabbithole (thereby interrupting my current task)

I also couldn't install any of those plugin to try them out.

I still don't know whether this plugin is something I want. I think I do but I'm not sure it is what I think it is.

Anyway, here is the description of what I wish it were, trim it down to reflect reality

"EnhanceAnyLexer" is a notepad++ plugin that colorizes displayed text based on its syntax. Primarily used for programming languages, it could be used to colorize any type structured text.

[Insert screenshot of notepad++ showing pretty colorful code here, in both light and dark mode variants]

This plugin comes with lexical (light and dark modes) color schemes for

the following programming languages Assembly,Ada,ALGOL,APL,Bash,BASIC,BCPL,B,C,C++,C#,COBOL,Crystal,Clojure,Dart,D,Delphi,ObjectPascal,Eiffel,Elixir,Elm,Erlang,F#,Forth,Fortran,Go,Groovy,Haskell,Java,JavaScript,Julia,Kotlin,Lisp,Lua,MATLAB,Mercury,Modula2,Modula3,ObjectiveC,Pascal,Perl,PHP,Prolog,Python,R,Ruby,Rust,Scala,Scheme,SQL,Swift,Tcl,TypeScript,VB.NET,VHDL,Verilog,VBA,Powershell,Smalltalk,ABAP,ActionScript,AWK,Ballerina,BlitzBasic,Boo,Brainfuck,Ceylon,Chapel,Clipper,ColdFusion,CommonLisp,Curl,Dylan,EPL,Factor,Falcon,Fjölnir,GLSL,GNAT,Ada,Harbour,Haxe,Icon,IDL,Inform,Io,Idris,J,JADE,Joy,JScript,LabVIEW,LadderLogic,LOGO,M,Maple,Miranda,ML,NATURAL,Nim,Oberon,Occam,Oz,Paradox,PL/I,PostScript,Q,REXX,RPG,SLang,SNOBOL,Solidity,SPARK,Stata,Turing,Vala,Visual DataFlex,Visual FoxPro,Wolfram,X++,Xojo,Yorick,Zig

and the following file formats TXT,RTF,HTML,XML,XHTML,CSS,JSON,SVG,RSS,ATOM,MD,MARKDOWN,ASCIIDOC,NFO,CSV,TSV,INI,TeX,LaTeX,BIB,LYX,MAN,POD,JS,PY,RB,PHP,SH,PS1,PL,YML,YAML,TOML,CFG,CONF,.htaccess,REG,MAKEFILE,PS,EPS,ZIM,MW,LOG,LST,DIFF,PATCH,G-code,STL,DXF,OBJ,PLY,IGES,STEP,GERBER,NC,SCAD

and the following human languages Afrikaans,Albanian,Asturian,Basque,Belarusian,Breton,Catalan,Cebuano,Czech,Danish,Dutch,English,Esperanto,Estonian,Faroese,Filipino,Finnish,French,Frisian,Galician,German,Greenlandic,HaitianCreole,Hawaiian,Hungarian,Icelandic,Indonesian,Irish,Italian,Javanese,,Kurdish,Latvian,Lithuanian,Luxembourgish,Malay,Maltese,Maori,Moldovan,Norwegian,Occitan,Polish,Portuguese,Romanian,ScotsGaelic,Slovak,Slovenian,Somali,Spanish,Swahili,Swedish,Tagalog,Tahitian,Tetum,Turkish,Turkmen,Uzbek,Vietnamese,Walloon,Welsh,Yoruba,Zulu

Ekopalypse commented 11 months ago

Added sample images and a description of what this plugin is used for.

Ekopalypse commented 11 months ago

I also couldn't install any of those plugin to try them out.

Can't you just use the PluginAdmin dialog of Notepad++?

This plugin comes with lexical (light and dark modes) color schemes for

No, it does not add anything. It only provides the possibility to "highlight" found matches with a defined regular expression with a certain color.