백곡시스템

CudaText Cross-platform code editor(라즈베리파이3)

http://lazplanet.blogspot.com/2018/05/spotlight-cudatext-hot-replacement-for.html

Features include:

  • Syntax highlight for many languages: C, C++, JavaScript, HTML, CSS, PHP, Python, XML etc. 200+ syntax lexers exist.
  • Code tree (tree structure of functions/classes/etc in source).
  • Code folding.
  • Multi-carets and multi-selections.
  • Find/Replace with reg. ex.
  • Plugins in Python language. Plugins can do lot of things.
  • Configs in JSON. Supports lexer-specific configs.
  • Tabbed UI.
  • Split each tab.
  • Split view for 2/3/4/6 files.
  • Simple auto-completion (fixed list) for some lexers.
  • Command palette (ST3 style).
  • Minimap.
  • Micromap.
  • Show unprinted whitespace.
  • Support for many encodings.
  • Customizable hotkeys.
  • Binary/Hex viewer for files of unlimited size.

Features for HTML/CSS coding:

  • Smart auto-completion for HTML, CSS.
  • HTML tags completion with Tab-key (Snippets plugin).
  • HTML color codes (#rgb, #rrggbb) underline.
  • Show pictures inside editor area (jpeg/png/gif/bmp/ico).
  • Show tooltip when mouse moves over picture tag, entity, color value.

Installation

pi@raspberrypi:~ $ mkdir ~/cudatext

cd cudatext

 

압축풀고 cudatext 파일 실행하면 됨.

Running and Tweaking it

If you are on linux, when you run it, you will probably get a screen like this:

It might have an error saying:

This happens only in Linux and is easy to fix.

Just run:

You will get some output for where python library files are. I got an output like this on my system:

We would need that in a minute. Now go to Options – Settings – user. Now paste in this code:

Notice that I have used only filename and not path. If this filename does not work, try the above code with the filenames you get on your system. Save and Restart. The error should be gone.

To make some space, you can click View – Toggle Bottom Panel and View – Toggle Side Panel.

Then you can also click on the Project icon on the Sidebar to reveal the Project Manager, which you can use to open browse and view files within a folder.

To spice up things a bit, you can choose an UI theme from Options – Color Themes – UI. If it prompts there is a Syntax theme with the same name, click OK.

To get the same look as Sublime, you can choose ebony or sub. If you like the color of Atom, you should choose darkwolf or zeus. Although they are not exact, you can finetune it by mixing different Syntax themes with UI themes.

I am a fan of the darker ones, but there are lighter themes if you feel like it.

When using darker ones, I have changed the icon color of the Project Manager toolbar, by clicking the cog icon and choosing feather_white_16x16 and restarting CudaText.

Also, I entered these in my Options – Settings – user:

This is some fonts, indentation and minimap stuff. You can find more settings in Options – Settings – default to find out more settings you can tweak. Just copy the entry to the user file and change the setting as you want.

Testing and Features

If you like the ctrl+p in Sublime or ctrl+shift+p in Atom, you can press F1 to bring in the Command Palette. This lists all the commands available in menus and such.

You have very much everything that you need by default. Multi caret, Multi Selection, Snippets, Project Manager – everything I miss from Sublime.

If I miss something dearly, I can install the sublime plugin for that thing.

Plugins

Which brings us to a great feature – Sublime Plugins on CudaText. To install such a plugin simply go to Plugins – Addons Manager – Install. Now you can type in some name of a plugin, for example, “find in files”. Select your desired option and press enter. Within some seconds you will get a message if you are sure you want to install it.

Click OK. Then it will install and show the summary in a dialog box. It may tell you to restart CudaText.

When you right click on a folder on Project Manager – Selected Directory – Find in Directory it will find your text in that folder. Neat!

Honestly, it is a very close alternative to Sublime. What is even better is to have a replacement made in Lazarus. If you need any further info or help, visit this wiki page for CudaText.

댓글 남기기

Close Menu