Giter VIP home page Giter VIP logo

geshi-arduino's Introduction

GeSHi Arduino Filter

Nigel McNie was kind enough to bring C syntax highlighting to GeSHi... but Arduino sketches aren't exactly C. Trimbitas Sorin-Iulian adapted the original C language data for Arduino... but there are a few things missing IMO. Here's what I'm doing...

  • update language data for Due, Uno, etc.
  • support documentation web-links (to Arduino.cc reference)
  • implement a redirect system for complex web links
  • expand web-links to first, second, and fourth tier (structure, variables, and keywords)
  • add 'drop-in' to extend web-links to included libraries

Syntax highlighting is good - but a self-guided tour through source sounds even more delicious!

INSTRUCTIONS

You should already have a GeSHi install somewhere... right? Drop arduino.php and redirect.php into your GeSHi /geshi folder... and sample.ino and test_arduino.php one directory above. FIRE IT UP!

RELEASE 0.0.1 2012/12/19

Functions are covered with Due/Uno support; Bildr.org is giving this a whirl. First-cut of redirect implemented and working nicely.

geshi-arduino's People

Contributors

jlbirccyn avatar

Watchers

 avatar  avatar

geshi-arduino's Issues

# is a symbol of single-line comment, but it has to be not

One can use # symbol for #define and #include, but seems like in your arduino.php it is used for single-line comment. I've found this expression in your arduino.php:
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
When I've removed
, 2=>'#'
nothing has changed.

How to fix this?

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.