Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch add tools/nano-syntax.sh extended nano editor syntax highlighting in …

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 24, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,045
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,528
    Local Time:
    3:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    add tools/nano-syntax.sh extended nano editor syntax highlighting in 123.09beta01

    running tools/nano-syntax.sh will install and setup extended syntax highlighting support for nginx, GO, ini, javascript, json, markdown, rpmspec, sql, systemd, yaml and yum syntaxes. Examples at https://community.centminmod.com/posts/38713/

    Continue reading...

    123.09beta01 branch

     
    • Like Like x 2
    • Winner Winner x 1
  2. ahmed

    ahmed Member

    245
    20
    18
    Feb 21, 2017
    Ratings:
    +27
    Local Time:
    7:36 PM
    How can I enable varnish vcl highlighting?
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,045
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,528
    Local Time:
    3:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,769
    366
    83
    May 31, 2014
    Ratings:
    +706
    Local Time:
    8:36 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hello

    As the richrad/nanorc-mac repo seems to not be updated at all (last update 7 years ago) isn't better to adjust this helpful addon to use something newer like this with more languages supported?

    scopatz/nanorc

    Thank you !
     
    Last edited: Nov 23, 2019
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,045
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,528
    Local Time:
    3:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Interesting thanks for heads up. Centmin Mod uses a cloned repo of richrad's at centminmod/nanorc so will look at updates
     
  6. JJC84

    JJC84 Ad astra per aspera Premium Member

    247
    109
    43
    Jan 31, 2018
    San Antonio, Texas
    Ratings:
    +168
    Local Time:
    12:36 PM
    1.15.x
    10.x.x
    Please add for vi!
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    3,769
    366
    83
    May 31, 2014
    Ratings:
    +706
    Local Time:
    8:36 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    @eva2000

    Great thanks !! I will wait for it :)

    Please add a check also in your script for users that have already used the existing repo.....
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,769
    366
    83
    May 31, 2014
    Ratings:
    +706
    Local Time:
    8:36 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Any ETA for this please?

    Thank you
     
  9. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,045
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,528
    Local Time:
    3:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Won't be anytime soon due to lack of free time to properly test the changes needed and how they impact operations. As bad or poor syntax highlighting can effect how you view/read code in SSH like in nano, vi/vim or grep or outputs. Like missing or poor colour highlighting which hide text or characters.

    Imagine if centmin mod instructions in SSH said to delete directory /home/path123 as an example. But due to bad syntax highlighting template used by these 3rd parties, the numerical characters were highlighted in a text colour than matched the background of your SSH terminal. This means that the instructions to delete directory /home/path123 to end users in SSH would look like delete directory /home/path as the 123 part is incorrectly colour coded to match SSH terminal's custom background colour.
     
    • Agree Agree x 1
  10. runos

    runos Member

    42
    13
    8
    Dec 17, 2019
    Ratings:
    +16
    Local Time:
    1:36 AM
    1.17.6
    10
    I tried running nano-syntax.sh but still getting hard-to-read dark blue syntax if I try to edit mycmupdate as attached. Pls advice :)
     

    Attached Files:

  11. eva2000

    eva2000 Administrator Staff Member

    44,111
    10,045
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,528
    Local Time:
    3:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you were getting hard blue even before running nano-syntax.sh ? if so then the colours are determined probably by your ssh client settings and not nano-syntax.sh
     
  12. runos

    runos Member

    42
    13
    8
    Dec 17, 2019
    Ratings:
    +16
    Local Time:
    1:36 AM
    1.17.6
    10
    I'm using Putty and you're right. I change the ANSI Blue color in the Settings -> Colors to something lighter and it works. Thank you as always :)
     
    • Like Like x 1
    • Informative Informative x 1