Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting #2637

Closed
TheLordOfTheKings opened this issue Mar 8, 2024 · 3 comments
Closed

Syntax highlighting #2637

TheLordOfTheKings opened this issue Mar 8, 2024 · 3 comments

Comments

@TheLordOfTheKings
Copy link

Can we have a regex-based Syntax highlighting engine for CLI outputs like putty, ps, ...?

@TheLordOfTheKings TheLordOfTheKings changed the title Syntax highlighting for PuTTy Syntax highlighting Mar 8, 2024
@BornToBeRoot
Copy link
Owner

Hey @Arash88 can you please describe in more detail what you mean? For which tools / view exactly?

The PowerShell & PuTTY windows are only integrated here. This means that all syntax highlighting is available that also works in the normal PowerShell or PuTTY window.

Example (PowerShell):

image

@TheLordOfTheKings
Copy link
Author

Hey @BornToBeRoot
I want something like this for putty, syntax highlighting based on regex rules:
https://github.com/rmerzlyakov/putty_hlsyn

Is it already possible? can I have colors in Cisco outputs?

@BornToBeRoot
Copy link
Owner

Yeah. This should work. You have 2 options:

  1. Overwrite the setting they explain here (https://github.com/rmerzlyakov/putty_hlsyn) in the default PuTTY profile that is used by NETworkManager

    Load the NETworkManager profile, change the settings, and save it:
    image

  2. Create your own PuTTY profile (e.g. CISCO) and use it in NETworkManager
    2.1) You can set it global (for all connections)
    https://borntoberoot.net/NETworkManager/docs/application/putty#profile-4
    2.2) per group
    https://borntoberoot.net/NETworkManager/docs/application/putty#profile-3
    2.3) or per host
    https://borntoberoot.net/NETworkManager/docs/application/putty#profile-2

Example:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants