Code Monkey home page Code Monkey logo

code2html's People

Contributors

col-e avatar dependabot[bot] avatar geoffreyhayward 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

code2html's Issues

Subpatterns

Lets say I have the following text:

<span class="code">pom.xml</span>

I can make a rule that registers <span class="code"> and </span> as HTML tags (<[\s\w="\/;'.,:?-]+>), but I then want to look inside the matched region and match keywords like class and strings. I can't do this with single-level patterns. This will need sub-patterns to accomplish.

Rebranding

Future updates will allow more than only java to be style-matched.

So Java2HTML now is more like AnythingYouHaveRegexFor2HTML, but a better name has to exist. Would like to hear some options. For now, the deceptive name can be kept.

Or, this may be a dumb idea and the name should be kept. I'd like to hear some opinions on the matter.

CLI

For automation purposes, a CLI would be useful to have.

java2html --language <language> -theme <theme> --config <config-path> [text-file-path]

Input

  • Optional Flags
    • language: Default's to first occuring language in the config if no value passed.
    • theme: Default's to the first occuring theme in the config if no value passed.
    • config: Default's to the internal config file if no value passed.
  • Required args
    • text-file: Path to text file to parse

Output

  • HTML to console-out
  • HTML to file-out (optional arg for output file)
  • Clipboard (clipboard as optional flag, default disabled?)

Approach

Looking towards picocli

Auto collapse

It would be nice if there was a option (independent of config?) that would automatically wrap blocks of indented items in collapse-sections.

The JS would need also need refactoring to support 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.