Code Syntax Highlighting

In order to cater for programmers using Research Space, code syntax highlighting within documents is now supported. This improves the readability of code which is especially important during collaborative work.

Currently the following languages are enabled:

  • HTML/XML
  • Javascript
  • Java
  • CSS
  • PHP
  • Ruby
  • Python
  • C
  • C++
  • C#

In order to insert or edit syntax-highlighted code within a document, follow the steps below:

  1. With the document in ‘Edit’ mode, click on the ‘Insert/Edit code sample’ button in the menu
  2. This will open a window like the one in the screenshot below
  3. Select the correct language for your code
  4. Paste the code into the box
  5. Click ‘OK’
  6. The code will now appear as shown, with appropriate syntax highlighting
  7. Should you wish to edit the code at a later date, simple double click on the code sample
Code Syntax
CodeSyntax


How did we do?


Powered by HelpDocs (opens in a new tab)