GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — smallbasic.syntax-highlighting/nano at main · smallbasic/smallbasic.syntax-highlighting

Expand file tree

/

nano

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

nano

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
LICENSE
LICENSE
 
 
README.md
README.md
 
 
screenshot.png
screenshot.png
 
 
smallbasic.nanorc
smallbasic.nanorc
 
 

README.md

Outline

SmallBASIC syntax coloring for NANO

This nano package adds syntax coloring for the SmallBASIC language (https://smallbasic.github.io/).

Example

Installation

  • Create a folder ~/.config/nano/syntax
  • Copy the file "smallbasic.nanorc" into that folder
  • Edit nanorc -> nano ~/.config/nano/nanorc
  • In the section ## === Syntax coloring === add include "~/.config/nano/syntax/*.nanorc"

Tweaking nano

Depending on your Linux distribution the default nano settings are a little bit disappointing. But fortunately you can tweak nano quite a bit by activating some settings in nanorc. Just remove the comments for:

  1. set autoindent
  2. set indicator
  3. set linenumbers
  4. set minibar
  5. set mouse
  6. Remove the comments in the section ### Paint the interface elements of nano to make nano colorful.
  7. include "/usr/share/nano/*.nanorc"
  8. To get more common keyboard shortcuts like CTRL+C for copy uncomment all the commands in the section ## If you would like nano to have keybindings that are more "usual"

A useful hint

If you use nano in a console you can suspend it by pressing CTRL-Z. After pressing CTRL-Z you are on the console and you can i.e. start the console version of SmallBASIC to test your program. After testing you can switch back to the suspended nano by executing the command fg in the console.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.