Este plugin não foi testado com as 3 últimas grandes versões do WordPress. Pode já não ser suportado e pode ter problemas de compatibilidade quando usado com versões mais recentes do WordPress.

Coding Blocks

Descrição

PLEASE NOTE THAT THIS PLUGIN DOES NOT AND WILL NEVER EXECUTE ANY TYPE OF CODE ON YOUR WORDPRESS SITE!

This plugin uses Google Prettify which is an open-source syntax highlighting library.

This plugin relies on 3rd party services under the circumstances below;

  1. Syntax highlighting – This is the core library that will make your snippets to be formatted according to your chosen language.

  2. Color Themes – This is the color themes that can be used to change what your code snippets looks like

You can find the Terms of Use and privacy policy on the links above.

HOW TO USE

CREATE A NEW SNIPPET

  1. Head Over to the New Snippet page to create a New Code Snippet.
  2. On the page, add a title for the new snippet.
  3. Select the Language you’re working with.
  4. Type in the code in the code box and when you’re done, click on Preview.
  5. Click on Save to save your code snippet.

NOTE: YOUR CODE SNIPPETS ARE ENCODED AND STORED AS PLAIN TEXT TO PREVENT ITS EXECUTION

MANAGE CODE SNIPPETS

  1. Head Over to the All Snippets page to view existing code snippets.
  2. You can click on the Copy button to copy the shortcode for the snippet.
  3. You can click on the Edit button to edit a code snippet.
  4. You can click on the Delete button to delete a code snippet.

EDIT CODE SNIPPET

  1. Head Over to the All Snippets page to view existing code snippets.
  2. Click on the Edit button to redirect you to the edit page.
  3. On the Edit page, change the title for the snippet.
  4. Change the Language you’re working with.
  5. Modify the code in the code box and when you’re done, click on Update.

EMBED CODE SNIPPET

  1. Head Over to the All Snippets page to view existing code snippets.
  2. Click on the Copy button to copy the shortcode for the snippet.
  3. In any of your wordpress posts, place the copied shortcode & save the post.
  4. Preview the post to see the snippet embedded right where you want it.

Ecrãs

  • This is the Screenshot of the page where you can create a new snippet.
  • This is the Screenshot of the page, where you can edit your snippets.
  • This is the Screenshot of a snippet in a Wordpress Post.
  • This is a Screenshot of the preview page, where you can preview color themes before using them.

Instalação

  1. Upload coding-blocks to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Head Over to Get Started to learn How to add your first code snippet.

Perguntas frequentes

How does the plugin work?

  1. Create a new code snippet
  2. Navigate to the list of code snippets
  3. Copy the shortcode of the snippet you need
  4. Paste it into your WordPress post Editor and save the post.

Avaliações

Este plugin não tem avaliações.

Contribuidores e programadores

“Coding Blocks” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

Traduza o “Coding Blocks” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registo de alterações

1.0.6

  1. Added Copy function to snippet creation page
  2. Removed Error message that shows when you save an already existing record on plugin options
  3. Fixed a Bug with copying code snippets on mobile devices

1.0.5

  1. Fixed a bug with uninstalling the plugin.
  2. Improved Admin UI & Code snippet UI.
  3. Added new theme “pinky Night”.

1.0.4

  1. Admin UI & Snippet’s UI was improved
  2. Block sync was removed because snippets now have a better way to load

1.0.2

  1. It supports up to 44 Languages.
  2. It supports up to 34 Color Themes.
  3. We Added Settings Page. (More description in Changelog file).
  4. We Added Preview Page. (More description in Changelog file).
  5. We Removed Code Labels on code blocks (In re-development process).
  6. We Redesigned Admin UI.
  7. Block Sync Now Available (You can update all your code snippets with one tap to reflect your current plugin settings)

1.0.0

  1. It supports just 6 Languages.
  2. It has Just one default theme which is Sunburst Google prettify + night glory.
  3. A brief description of your code snippet is attached at the header section.
  4. A copy button is attached to each of your code snippet.