Posted 21 November 2016 - 01:11 AM
Introduction
Hello everyone,
So recently I have been getting into computer craft, and that's because I just got into modded. I love programming outside of Minecraft, so when I saw CC, I jumped into it immediately! I am used to very high-end IDEs, such as Visual Studio or IntellJ which have amazing auto-completion and syntax highlighting, and after seeing CC's terminal to code in, I was thoroughly disappointed. Then I discovered that I could use Notepad++ to edit the scripts… but I wanted more. So, after a lot of research, I came across many color schemes and auto completion XML files for N++, but none suited me. So I went ahead and made my own for myself, with the community (you guys) in mind. I have finally completed it now and would like to share it with you!
PicturesCode from: Advanced Mining Turtle by AustinKK
Downloads
These files correlate to the following:
Version 0.1.0:Installation
VS2012 - Dark Theme (Theme)
If you have any questions, please leave them below and I'll answer them as soon as possible. Sorry that this is a Windows-orientated tutorial, I have never used Mac before, so I won't be able to 'translate' it to Mac terms. Also, please leave some feedback on how I can improve this! I am planning on adding support to the other functions within Computer Craft (Such as the term. functions). If you have a specific request, leave a comment below and don't forget to upvote this post! Thank you!</language>
Hello everyone,
So recently I have been getting into computer craft, and that's because I just got into modded. I love programming outside of Minecraft, so when I saw CC, I jumped into it immediately! I am used to very high-end IDEs, such as Visual Studio or IntellJ which have amazing auto-completion and syntax highlighting, and after seeing CC's terminal to code in, I was thoroughly disappointed. Then I discovered that I could use Notepad++ to edit the scripts… but I wanted more. So, after a lot of research, I came across many color schemes and auto completion XML files for N++, but none suited me. So I went ahead and made my own for myself, with the community (you guys) in mind. I have finally completed it now and would like to share it with you!
PicturesCode from: Advanced Mining Turtle by AustinKK
Downloads
These files correlate to the following:
- "VS2012 - Dark Theme.xml" - Theme
- "langs.xml" - Syntax Highlighting
- "lua.xml" - Full Lua and Turtle Auto-Completion
Version 0.1.0:Installation
VS2012 - Dark Theme (Theme)
- Close Notepad++
- Navigate to %appdata%\Notepad++\themes . Here are all the themes that are 'installed' into Notepad++.
- Drag and drop "VS2012 - Dark Theme" into this folder.
- Start up Notepad++ and go to Settings > Style Configurator and click on the "Select theme: " drop-down list and click on "VS2012 - Dark Theme".
- NOTE: If "VS2012 - Dark Theme" is not displayed here, you have moved the file you downloaded to the incorrect location, or you have moved the wrong file.
- Navigate to %appdata%\Notepad++ . Here you will see a file called langs.xml . Open it and navigate to <language name="lua" ext="lua" commentline="–"> (You can use Ctrl+F and paste this in to find the line).
- Replace all the text from <language name="lua" ext="lua" commentline="–"> to </language> with the contents inside the "langs.xml"!
- Restart Notepad++ and try type any turtle keywords. You will see that they are colored now. But there's no auto-completion yet.
- Close Notepad++
- Navigate to your Notepad++ install directory. It's usually located at C:\Program Files (x86)\Notepad++\then navigate to plugins\APIs within this folder.
- Drag and drop "lua.xml" into this folder (APIs).
- Start up Notepad++ and start typing the beginnings of lua commands and turtle commands. Such as "tur" or "tonumb", which should bring up a list that allows you to click on "turtle" or "tonumber()".
If you have any questions, please leave them below and I'll answer them as soon as possible. Sorry that this is a Windows-orientated tutorial, I have never used Mac before, so I won't be able to 'translate' it to Mac terms. Also, please leave some feedback on how I can improve this! I am planning on adding support to the other functions within Computer Craft (Such as the term. functions). If you have a specific request, leave a comment below and don't forget to upvote this post! Thank you!</language>
Edited on 21 November 2016 - 02:04 AM