Code

Atto ::: atto_code
Maintained by Astor Bizard
A plugin for atto to easily insert inline code tags.
Latest release:
232 sites
45 downloads
8 fans
Current versions available: 1

Description

This plugin for Atto editor allows users to easily insert inline code tags, without switching to the HTML editor. 
It works in a similar way as underline, subscript, superscript... buttons. 
Please note that this inserts HTML tags <code></code> that are meant for formatting only. This does not allow you to include any actually executed script.

Installation

Once installed on your moodle site, an administrator has to add this plugin to atto editor in order to use it.
To do so, go to <yoursite>/admin/settings.php?section=editorsettingsatto.
You should see a list of currently installed atto plugins, including Code.
Below, you should find the "Toolbar config" text area.
Add ', code' at the end of a line
And you're done!

About

This software was developped with the Caseine project, with the support of the following organizations:

  • Université Grenoble Alpes
  • Institut Polytechnique de Grenoble

Screenshots

Screenshot #0

Contributors

Astor Bizard (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Plugins bot
    Wed, 19 Jan 2022, 6:01 PM
    Approval issue created: CONTRIB-8825
  • Mike Wilday
    Fri, 1 Apr 2022, 3:45 AM
    So, does this let me add an embed code to the page without switching to the HTML editor??? If so, you should update your description so it's more clear. This seems like a very valuable tool.
  • Astor Bizard
    Fri, 1 Apr 2022, 4:44 PM
    @Mike Wilday Thank you for your feedback and suggestion. I updated the plugin description. smile
  • Daniel Poggenpohl
    Fri, 29 Apr 2022, 7:13 PM
    I'm confused right now, is this a continuation/fork of https://github.com/jonof/moodle-atto_code or just (because of its "simplicity") similar?
  • Astor Bizard
    Fri, 29 Apr 2022, 7:37 PM
    Hello,

    I was not aware of the existence of jonof's moodle-atto_code, as it is not registered in Moodle plugins directory...
    The two pieces of code were developed independently, but I believe they do the exact same thing. ^.^'

    Astor
  • Mike Wilday
    Wed, 6 July 2022, 4:59 AM
    Do you have a version compatible with Moodle 4.0?
  • Astor Bizard
    Thu, 7 July 2022, 9:29 PM
    Hi,

    I just tested it and the current version does work for Moodle 4.0. I updated the supported versions accordingly.

    Best regards,
    Astor
  • Virgil Ashruf
    Tue, 2 July 2024, 5:57 PM
    The plug-in does not list support for 4.1.

    I have just installed it in 4.1, it installs, it is able to be configured, and then works on content.

    Can you add the plug-in support tag for 4.1?

    Joyful regards,

    Virgil
  • Astor Bizard
    Tue, 2 July 2024, 10:41 PM
    Hi @Virgil Ashruf,

    Thanks a lot for the test. I tested it on Moodle 4.3 as well and everything is fine.
    I'm tagging it as supporting up to version 4.3!

    Astor
Please login to post comments