CodeExpander

vuePress-theme-reco codeexpander    2018 - 2023
CodeExpander CodeExpander

Choose mode

  • dark
  • auto
  • light
Basic
  • Features
  • Installation
  • Get Stared
  • Layout
Advance
  • Group
  • Text & Script
  • Keyboard
  • Calendar
  • Fill-in
  • Rich Text
Pricing
FAQ
  • FAQ
  • Shortcut
  • Privacy Policy
选择语言
  • 简体中文
  • English
GitHub (opens new window)
author-avatar

codeexpander

0

文章

0

标签

Basic
  • Features
  • Installation
  • Get Stared
  • Layout
Advance
  • Group
  • Text & Script
  • Keyboard
  • Calendar
  • Fill-in
  • Rich Text
Pricing
FAQ
  • FAQ
  • Shortcut
  • Privacy Policy
选择语言
  • 简体中文
  • English
GitHub (opens new window)
  • Advance

    • Group Setting
    • Text & Script
      • Plain Text Snippets
      • Script Snippets
      • Javascript
      • Shell
      • Python
      • AppleScript
    • KeyBoard
    • Calendar
    • Fill-In
    • Rich Text

Text & Script

vuePress-theme-reco codeexpander    2018 - 2023

Text & Script


codeexpander 2020-01-11

# Plain Text Snippets

As the name implies, plain text snippet insert unformatted text. In most cases, all you need is plain text.

  • In the snippet format drop-down menu, choose Text as the format type.
  • In the snippet field, you may enter:
    • Plain Text
    • KeyBoard
    • Calendar
    • Fill-In

# Script Snippets

Snippets are functional snippets provided to people with a certain amount of coding power or written by them and shared with others.

It has great flexibility to meet most dynamic requirements. However, the build environment depends on the native environment, so you need to install the associated build environment.

Its built-in function: clipboard properties CODEEXPANDER_CLIPBOARD

Example: All uppercase clipboard contents

# Javascript

For simple example:

  • In the snippet format drop-down menu, choose Javascript as the format type.

  • In the snippet field, enter such a javascript script

    console.log("Hello world");
    
    1

CodeExpander captures the output of the console and returns it to the consumer, because it is an essential element of the entire javascript, otherwise it gets nothing.

# Shell

For simple example:

  • In the snippet format drop-down menu, choose Shell as the format type.

  • In the snippet field, enter such a shell script

    #!/bin/sh
    echo $CODEEXPANDER_CLIPBOARD
    
    1
    2

CodeExpander captures the output of the echo and returns it to the consumer, because it is an essential element of the entire javascript, otherwise it gets nothing.

# Python

For simple example:

  • In the snippet format drop-down menu, choose Python as the format type.

  • In the snippet field, enter such a shell script

    print(CODEEXPANDER_CLIPBOARD)
    
    1

CodeExpander captures the output of the print and returns it to the consumer, because it is an essential element of the entire javascript, otherwise it gets nothing.

# AppleScript

Same as above.

Edit this page on GitHub (opens new window)
Last Updated: 3/25/2022, 9:40:35 PM