Coder Social home page Coder Social logo

jaredpetersen / codeprinter Goto Github PK

View Code? Open in Web Editor NEW
289.0 7.0 40.0 7.15 MB

๐Ÿ–จ๏ธ Print out code easily

Home Page: https://jaredpetersen.github.io/codeprinter/

License: MIT License

HTML 4.23% JavaScript 91.95% CSS 3.82%
code printer printing print programming-tools

codeprinter's People

Contributors

jaredpetersen 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeprinter's Issues

Too small font on some pages

I used your tool to generate around 30+ PDFs, and 4 of them got weirdly small font. Here is one of them.
KVS_BusRoutes.html.pdf

I couldn't understand why this is happening. I am 80% sure it is due to something in the code (all 4 codes have too similar code), but couldn't figure out what.

Take advantage of React Hooks

React Hooks didn't exist when codeprinter was last overhauled. Look into how it may benefit the project and make the necessary changes.

Look into using Bulma

Look into using Bulma instead of Bootstrap / Reactstrap. Will likely need to a smaller deployable and possibly a nicer looking interface.

Single Apostrophe

Reddit user Merc92 brought up that single apostrophes were showing up just as their html encoded version.

Single Apostrophe Issue

Feature Request: Solidity Highlighting

I would like Solidity language to be supported. I tried it today using GitHub highlighting option but it's not correctly highlighting it.

Solidity is a smart-contract language and smart-contracts need to be strictly reviewed so programmers often print them for review tasks. This could be really useful for many people.

Dark Mode

Is there an option for darkmode and I cant find it?
If not it would be great if it could be added!

Code longer than a page printed incorrectly

Self explanatory. I was trying a method of printing 53 lines out (one page) before inserting a bunch of newline characters to get the margins right, but that only sort of works as long as a line of text fits on a page (no text wrapping). I think the next way to figure this out is going to be something to the effect of finding out the exact width of a character and calculating how many characters can fit on a line.

UI should look like a simple text editor

Google Docs really does the word processing UI right. The UI for code printer should look similar, with different (monospace only) fonts, font sizes, and color highlighting choices.

Update dependencies

App no longer builds. This can be addressed with npm i react-scripts@latest, but it looks like there are still some issues with that.

Other dependencies are out of date as well. React itself, React Syntax Highlighter, etc... A lot has changed in 5 years ๐Ÿ˜„

Sanitation

Codeprinter needs to sanitize the text input. In some cases where single quotes are used, the text can become enlarged when printed:

screen shot 2015-05-11 at 9 59 37 pm

HTTPS

Concerns of pasting into "some website" would be reduced if it was at least served over HTTPS.

Please consider doing that if possible.

Change GitHub highlight.js theme to match the current GitHub style

The GitHub highlight.js syntax theme that is provided by default does not really match the current GitHub syntax highlighting style.

Two options:

  1. Create a new theme that more closely matches GitHub
  2. Replace the GitHub theme and create a new custom theme in general

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.