Comments (10)
Add a line include "C:/my/nano/rcs/*.nanorc"
to your .nanorc
file and then extract all the syntax highlight .nanorc
files included in the .zip to the include dir mentioned above.
from nano-win.
Enhancements
+ .nanorc is loaded from "%USERPROFILE%\.nanorc" with normal privilege
and from "%ALLUSERSPROFILE%\.nanorc" with elevated privilege.
+ Systemwide nanorc is loaded from "%ALLUSERSPROFILE%\nanorc".
Read the above carefully and yes, I know it can be very confusing at first glance, but I ain't judging.
from nano-win.
I think I understand what you're saying, but before I make these changes, was I supposed to install nano-win into a certain directory?
from nano-win.
No. But wherever you do, make sure your '.nanorc' contains an absolute path to default syntax files.
from nano-win.
I have the same problem. I can't get any color when running nano in powershell (pwsh.exe
), no matter what I do. It runs fine, but no color.
Can someone please provide:
- a functioning
.nanorc
and the location of that? - the correct
$env:path
and location? - Do we also need to set our own
$HOME
? - Do we need to manually enable
ENABLE_VIRTUAL_TERMINAL_PROCESSING
?
(New windows should handle this automatically, but may be need to enable manually for legacy code?) - Is there a specific file encoding required on either the OS terminal or of the files?
(UTF-8 for files or OS?)
from nano-win.
You also said in your latest commit that you enabled UTF-8
, yet it was compiled with it disabled. (See #35 ).
from nano-win.
I used the default .nanorc
file included in the package, commented out the line following the ## To include most of the existing syntax definitions, you can do:
and adjusted the path to c:/installfolder/whatever/*.nanorc
.
You can load the .nanorc file with the option --rcfile=c:/installfolder/.nanorc
.
You can pack this into a one-liner batch file like @"c:\Program Files\Nano\pkg_x86_64-w64-mingw32\bin\nano.exe" --rcfile="c:/Program Files/Nano/.nanorc" %*
to avoid typing the option everytime.
from nano-win.
I just installed nano (both same & latest versions) on a new Window 10 Pro. I copied all the nano config, environment and all the various terminal and character coding settings I could think of to the new machine, but no matter what I do, I am not able to get colors showing in pwsh (core), even if they're working perfectly for all other programs I use via terminal. I have no idea what is causing this not to work ion this machine.
UPDATE
Indeed this seem related to the created pwsh windows shortcut.
When one is created without Admin rights, the coloring works.
When it has administrator rights enabled, it doesn't... BUT
This is not the whole story. On the other machine, it has administrator rights and still works.
Something funny about the windows link/shortcut difference...
from nano-win.
C:\> 7z e nano-win_9986_v6.2-16-g58bbad01a.7z -o"C:\ProgramData\" ".nanorc"
C:\> ren C:\ProgramData\.nanorc nanorc
C:\> echo include "C:/my/nano/syntax/hilite/resources/*.nanorc" >> C:\ProgramData\nanorc
from nano-win.
By the way, for a nicer set of syntax highlighting definitions see:
https://github.com/scopatz/nanorc
from nano-win.
Related Issues (20)
- Error expanding @PKGDATADIR@ HOT 2
- Support italics HOT 9
- Recommended Installation HOT 6
- ../../../ncurses-6.2/ncurses/curses.priv.h:2613:5: error: unknown type name βHANDLEβ HOT 6
- Latest build identified as malware HOT 2
- Display collapses when the window is resized HOT 1
- The last two versions of x86_64-w64-mingw32 nano.exe identify as the same revision HOT 4
- ALT GR Key behaving as ALT HOT 3
- nanorc not found in elevated shell HOT 18
- Why compiled with the flag "--disable-utf8"? HOT 1
- Enhancement: Use same profile location for Admin as for user HOT 6
- FAQ: Where is the "positionlog" file located? HOT 4
- Windows path convention does not work HOT 1
- missing libmcfgthread-1.dll on nano 6.3 HOT 4
- nano not working on Win11 HOT 2
- discuss config file location improvements HOT 1
- Key mappings HOT 4
- SUGGESTION: Streamline the cross compile from linux HOT 16
- Term environment variable error on Windows SSH HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano-win.