• Resolved Daniele De Rosa

    (@bloodspencer)


    Hi there,

    awesome plugin – many thanks! First at all I′m using the Code-block. But I′m missing the support for Angular Code. For example <ion-buttons item-end> gives me a syntax error on HTML mode. item-end="true works, but it′s not clean Angular code which I want to show to my blog readers..

    Do you plan an update for this?

    Regards! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author maximebj

    (@maximebj)

    Hi,

    I’m looking how to add it.

    I have JSX for React in Code Mirror but nothing for Angular :

    https://codemirror.net/mode/

    Maybe I just have to load HTMLMixed with JS to handle this?

    Thread Starter Daniele De Rosa

    (@bloodspencer)

    HTMLMixed with JS could be the solution ??

    Plugin Author maximebj

    (@maximebj)

    Yo can try it easily :

    make a first code block in PHP (it will load htmlmixed in the page)

    make a second code block in Js with angular code. And tell me if it works.

    If it’s okay I can add this to the next release ! Thanks

    Thread Starter Daniele De Rosa

    (@bloodspencer)

    I don′t know exactly what do you mean ?? I tried to create a PHP and JS block:
    Image to show

    The PHP block shows the angular code very good. The JS block not.

    Greetings ??

    Plugin Author maximebj

    (@maximebj)

    Ok so it means that in HTMLMixed mode, it works, I’ve made the change, it will be shipped on the next release later this week!

    Thanks for your time!

    Plugin Author maximebj

    (@maximebj)

    I’ll ship a new version today, feel free to reopen if the issue is not fixed

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Support for Angular Code’ is closed to new replies.