Skip to content

Instantly share code, notes, and snippets.

@edm00se
Last active August 29, 2015 14:05
Show Gist options
  • Save edm00se/5eb0a7d6eabcfd9fbfa8 to your computer and use it in GitHub Desktop.
Save edm00se/5eb0a7d6eabcfd9fbfa8 to your computer and use it in GitHub Desktop.
Redmine CodeRay Syntax Highlighting of Domino/XPages Eesign Elements

Updating Redmine CodeRay to Syntax Highlight (most) Domino/XPages Design Elements

Get into the correct file that pertains to file extensions and syntax highlighting definitions.

  • go to your Redmine directory (ex- /var/www/redmine)
  • enter your vendor library path for CodeRay (ex- vendor/bundle/ruby/1.9.1/gems/coderay-1.0.9/)
  • edit the file_type.rb file (which defines the language syntax associtiations, ex- lib/coderay/helpers/file_type.rb) with your preferred editor

Now that you're there, we need to associate the design elements accordingly. Scroll down to the section defining the array of TypeFromExt (or search, in nano CTRL+W, for something like xml), and add in the following:

  • 'fa' => :xml,
  • 'form' => :xml,
  • 'frameset' => :xml,
  • 'jss' => :java_script,
  • 'page' => :xml,
  • 'properties' => :xml,
  • 'view' => :xml,
  • 'xsp' => :xml,

The Notes (classic) design elements, especially Form and View, are best viewed in source control if you have un-checked the 'Use Binary DXL for source control opersations' in Domino Designer (Domino Designer > Source Control) and will read like a semi-decent XML structure. If you're just concerned about the XPage'd elements, the 'xsp' file extension and 'jss' are the only necessary definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment