pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

ngmodules.org - include 'npm install angular-highlightjs' #44

Closed juliusakula closed 9 years ago

juliusakula commented 9 years ago

The ngmodules page, The Getting Started section, I think should contain:

npm install angular-highlightjs

I didn't read anywhere that this would install the directive, so I pretty much guessed and confirmed it was the same (it works). Just a suggestion for the ngmodules page which advertises this git repo and is the first google hit

Also, since this is such a short github issue I'm shamelessly going to plug my markdown editor/renderer that I made. this suggestion was for a change to a readme file anyway :P

pc035860 commented 9 years ago

Hey thanks @juliusakula ! The npm support was released on v0.4.0, and I forgot to add it to README.

pc035860 commented 9 years ago

BTW, I also updated the page on ngmodules, hope that would help people better understand the module. It's so terrible that ngmodules' page doesn't support git-flavored markdown. :weary:

juliusakula commented 9 years ago

as an aside, I couldn't get angular-highlightjs to work with angular-md. my project is also open source so I can convienently link to the revelant files - so, quick question with context, if you look at my src/views/hompage.tpl.hmtl you can see the rendered markdown is pretty much:

Is there a way I can have the $scope.text variable have the syntax highlighting in the same manner?

pc035860 commented 9 years ago

It's like

<div hljs source="text"></div>

I guess ?