alexgorbatchev/SyntaxHighlighter — Issue #62: conflict with AMD loaders like RequireJS
Author: millermedeiros
Created: 2011-11-21 15:34:55+00:00
State: open

since SyntaxHighlighter have a check at the top of each brush file:

```js
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
```

it breaks compatibility with AMD modules since `require` is also available if an AMD loader is available on the page.

the proper check would be:

```js
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
```