Git Product home page Git Product logo

Comments (2)

mustng65 avatar mustng65 commented on July 29, 2024 1

Hi @hukop, I ran into this with wanting to format YAML. It looks like there are a bunch of language definitions already there you just have to set them up in the plug in.

The list of supported languages can be found by going to the installation folder for NoteHighlight2016, which can be found either under C:\Program Files (x86)\CodingRoad\NoteHighlight2016\ or C:\Program Files\CodingRoad\NoteHighlight2016\. Then navigate to hightlight > langDefs. In the langDefs folder you should see all the supported languages. (looks like cmake is already there)

Once you confirmed the language it already supported then you just need to edit the ribbon.xml located back in the root NoteHighlight2016 folder. I typically just copy an existing button node and update the details.

Example:

<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" loadImage="GetImage">
    <ribbon>
        <tabs>
            <tab id="tabNoteHighlight" label="NoteHighlight" keytip="H">
                <group id="groupLanguage" label="Language">
...
                    <button id="buttonYAML" label="YAML" size="large" screentip="Enter YAML Code" onAction="AddInButtonClicked" tag="yaml" keytip="Y"  image="Other.png" visible="true"/>
                    <button id="buttonCMake" label="CMake" size="large" screentip="Enter CMake Code" onAction="AddInButtonClicked" tag="cmake"  image="Other.png" visible="true"/>
...
		</group>
        <group label="Advanced" id="Advanced">
                <checkBox id="cbQuickStyle"  label="Quick Style" onAction="cbQuickStyle_OnAction" getPressed="cbQuickStyle_GetPressed"/>
		    	<checkBox id="cbDarkMode"  label="Dark Mode" onAction="cbDarkMode_OnAction" getPressed="cbDarkMode_GetPressed" screentip="Sets text background to Transparent for Dark Mode compatibility"/>
                <button id="buttonSettings" label="Settings" size="normal" screentip="Advanced settings" onAction="SettingsButtonClicked" image="Other.png" visible="true"/>
        </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>

I just used the Other.png for the image, but I would imagine you could create your own image and place it in the Resources folder located in the root NoteHighlight2016 folder.

In the ribbon.xml file you can also hide languages using the "visible" attribute or reorder them by changing there order in the file.

Once you are done you will need to restart OneNote for it to pick up the changes.

Hope this helps!

from notehighlight2016.

hukop avatar hukop commented on July 29, 2024

Thanks it does help.
Would be nicer if this would be achievable through the OneNote GUI.
But I consider this issue as closed.

from notehighlight2016.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.