Join the community 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

    54,894
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  2. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    11:42 AM
    How can I enable varnish vcl highlighting?
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,894
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    11:42 AM
    Nginx-1.25.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
  5. eva2000

    eva2000 Administrator Staff Member

    54,894
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    247
    109
    43
    Jan 31, 2018
    San Antonio, Texas
    Ratings:
    +169
    Local Time:
    4:42 AM
    1.15.x
    10.x.x
    Please add for vi!
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    11:42 AM
    Nginx-1.25.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

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    11:42 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Any ETA for this please?

    Thank you
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,894
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.
     
  10. runos

    runos Member

    57
    17
    8
    Dec 17, 2019
    Ratings:
    +22
    Local Time:
    5:42 PM
    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

    54,894
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    57
    17
    8
    Dec 17, 2019
    Ratings:
    +22
    Local Time:
    5:42 PM
    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 :)