Comments (2)
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.
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)
- Formatting fails depending on surrounding text
- Cannot install executable in corporate environment
- How can I make sure that the colors in the snippet are exactly as I specified in the .theme file? (undistorted) HOT 1
- Does not support OneNote for Windows 10 HOT 3
- Why does notehighlight when copying into OneNote push everything together. HOT 4
- Error when trying to use this tool (screenshot in comments) HOT 1
- Inactive Application Add-in after upgrading to Windows 11 HOT 1
- Not support R language HOT 1
- Option to use the current block instead of creating another HOT 1
- Request to support systemverilog
- How to set the theme of a language, such as python?
- Where can I see all samples of themes? HOT 4
- Ribbon only showing first 13 languages HOT 1
- OneNote2016 2304 Build cannot work HOT 1
- No YAML? :-( HOT 2
- The settings bug about font
- Add Fortran.95 format
- tried but not successfully result verilog VHDL
- Has anyone successfully used this to input Markdown? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notehighlight2016.