apido.png

Drupal API enhancement contained in a user script. This userscript allows for variable and brace highlighting in code samples on http://api.drupal.org
Update 2012-05-14: This now also works on drupalcode.org and drupalcontrib.org.

Click here to install or update

  • For Firefox click the link above.
  • For Chrome or Opera right click and save the install link above, and follow the instruction links below.

Features

  • Eclipse style highlighting.
  • Matching brace highlighting.
  • Ctrl+Click navigation for variables and braces.

Works with

Usage Instructions

Click on a variable that you want to highlight, and all instances of that variable will be highlighted.

If you want to go to the first instance of a variable, hold CTRL when you click and you will automatically scroll to the first instance of that variable.

Clicking on any one these characters {}[]() will highlight its match.

Module

This should work as a module for any Drupal install that is running the API module.
This will NOT work with the regular PHP code filter as it depends on the formatting that the API module generates through the Grammar Parser module.

Inspired by another awesome script:

Project Information

Downloads