Coder Social home page Coder Social logo

poly-noweb's Introduction

License GPL 3 MELPA MELPA Stable

This package provides poly-noweb-mode - a polymode for noweb.

The detection of the major mode in the noweb chunks is done in the following order:

  1. (lang-name) after the chunk head as per nw2md specification (e.g. <<name>>= (bash))
  2. short mode name preceded by a period (e.g. <<name.bash>>=)
  3. extension of the file name is looked in auto-mode-alist (e.g. <<name.cpp>>=)
  4. local value of noweb-code-mode (for compatibility with the original noweb-mode)
  5. local value of polymode-default-inner-mode
  6. fallback on poly-fallback-mode

poly-noweb's People

Contributors

vspinu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

poly-noweb's Issues

python has @decorators, tail-matcher needs update

Hi,

I've provisionally fixed poly-noweb.el to support @decorators with a :tail-matcher (cons "^[ \t]*\\(@[ \t]*\\)$" 1) twice in the file. As I have no clue how the match groups are used, maybe the [:blank:] needs to go after the match group?

Anyhow, python decorators now work for me with polymode.

;; Version: 0.2.2
;; Package-Version: 20200316.1315
;; Package-Commit: 3b0cd36ca9a707e8a09337a3468fa85d81fc461c

HTML hostmode for documentation chunks

Is it also planned to have a HTML hostmode for the documentation chunks in noweb?

I know the standard is Latex but for me HTML is more approachable. Polymode is very new to me, but what I have seen so far it should be quite flexible to allow for other hostmodes.

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.