Code Monkey home page Code Monkey logo

6502-npp-syntax's Introduction

Notepad++ Syntax Highlighting for 6502 Assembly

Introduction

I started programming an NES game in 6502 assembly but couldn't find any syntax highlighting files anywhere, so I ended up making my own.

There are two files included here:

  • npp_6502_general.xml, which highlights opcodes, numbers, comments, etc. for the 6502 assembly language
  • npp_6502_nesasm.xml, which does the same thing, but also highlights assembler directives and functions for NESASM3

Installation

  1. Download npp_6502_general.xml or npp_6502_nesasm.xml.
  2. In Notepad++, go to LanguageUser Defined LanguageDefine your language...
  3. Click Import... and select the file.
  4. Restart Notepad++.
  5. Go to Language and select 6502 Assembly to load the syntax highlighting.
  6. If you use a theme, go to SettingsStyle Configurator and check Enable global background color to fix text display issues.

Features

  • Highlights opcodes, comments, numbers, and strings
  • Separate colors for integers, hex, and binary numbers
  • Special highlighting for immediate addressing symbol (#)
  • Special highlighting for registers (A, X, Y, S, P)
  • Opcodes can be entered in upper or lower case
  • Illegal opcodes are recognized and differentiated with a darker color
  • Works well on most themes with darker backgrounds

Notes

I've left off the automatic extension checking for .asm files because it would overlap with other types of assembly files, but if you'd like to make this highlighting the default for all .asm files, just add "asm" to the Ext. box in LanguageUser Defined LanguageDefine your language...

6502-npp-syntax's People

Contributors

xram64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

6502-npp-syntax's Issues

Failed to import

Hi, I tried out both XML Files, but both failed to import. I'm using Notepad++ 7.9.1 (64bit)
The Error Message I got was just: "Failed to import"
--- UPDATE ---
Sorry, my bad. I compared the XML File to own ones and they were quite different. Downloading files from GitHub by right click + "save link as" doesn't work!! I didn't know that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.