Giter Club home page Giter Club logo

joplin-plugin-better-code-blocks's Introduction

logo
Better Code Blocks

Joplin plugin that enhances code blocks with inline rendering, autocompletion, and more

Joplin Plugin MIT License Coverage

FeaturesScreenshotsDownloadSettingsCreditsLicense

preview

Features

  • Renders code blocks inline with Minimal or Standard styles
  • Adds copy button for inline code blocks
  • Autocompletes code blocks on Enter
  • Changes Select All to select the current code block

Screenshots

minimal layout standard layout settings

Download

Search for Better Code Blocks in the Joplin settings under the Plugins section.

Settings

Setting Options Description
Autocompletion Enabled, Disabled Enables/disables automatic completion of code blocks when Enter is pressed
Rendering Enabled, Disabled Enables/disables rendering of code blocks
Behavior of Select All inside code block Enabled, Disabled Changes the behavior of Select All while the cursor is inside code blocks
Render layout Minimal, Standard Changes the layout of rendered code blocks
Corner style Square, Round Changes the border style of rendered code blocks
Excluded languages (comma-separated list) Disables rendering of code blocks for specific languages
Copy button behavior Copy code, Copy code and fences Controls what's copied when the Copy Code button is clicked

Credits

License

Copyright © 2023 Chris Kant.
This project is MIT licensed.

joplin-plugin-better-code-blocks's People

Contributors

ckant avatar

Stargazers

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

Watchers

 avatar  avatar

joplin-plugin-better-code-blocks's Issues

Copy Code icon in editor AND preview view

Hi Chris,
thanks a lot for this plugin, I like it very much!

One idea to make it even better:
I only see the "copy code" icon in the "editor view".
All other "copy code plugins" show it only in the "preview view".

Would be great to have it in both views! :-)

How do you think about this idea?

Have a great day ahead! 😄

Add copy button for inline code

I will often have a single line of code that I'd like to be able to click to copy, but I don't want to have a full triple backtick code fence. So it would be great to have a copy icon appear when I hover over an inline (single back tick) code snippet.

Option to show line number

If we can have a option to show/hide line numbers on the settings this would be hands down the best code plugin on Joplin!

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.