Skip to content

abapPM/ABAP-Emoji

Repository files navigation

Version

License Contributor Covenant REUSE Status

✨ ABAP-Emoji ✨

GitHub Emoji Sets for ABAP.

Based on GitHub Emoji and API, v8, 2025-04-05.

NO WARRANTIES, MIT License

Prerequisite

HTML output with Internet connection since Emoji graphics are hosted on https://github.githubassets.com.

Usage

Use GitHub Cheatsheet to view supported Emoji shortcodes. Raw text may contains the emoji character (cut&paste it into your text) or the emoji shortcode.

Get CSS for emoji class:

data(emoji) = zcl_emoji=>create( ).
data(css) = emoji->get_emoji_styles( ).

Find emojis with regex:

data(list) = emoji->find_emoji( '^heart$' ).

Format any text:

write emoji->format_emoji( 'I :heart: ABAP' ).

I ❤ ABAP

I <img src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png" class="emoji"> ABAP

Integrate with abapGit (Developer Version)

image

Insert one line into the following class

CLASS zcl_abapgit_syntax_highlighter IMPLEMENTATION.
...
  METHOD apply_style.
...
    lv_escaped = show_hidden_chars( lv_escaped ).

    lv_escaped = zcl_emoji=>create( )->format_emoji( lv_escaped ). "<<< insert
...
  ENDMETHOD.

Installation

Install emoji as a global module in your system using apm.

or

Specify the emoji module as a dependency in your project and import it to your namespace using apm.

Contributions

All contributions are welcome! Read our Contribution Guidelines, fork this repo, and create a pull request.

You can install the developer version of ABAP Emoji using abapGit by creating a new online repository for https://github.com/abapPM/ABAP-Emoji.

Recommended SAP package: $EMOJI

Attribution

The Emoji data is under the Unicode License and copyright to the Unicode Consortium. The full license can be found here: http://www.unicode.org/copyright.html.

About

Made with ❤ in Canada

Copyright 2025 apm.to Inc. https://apm.to

Follow @marcf.be on Blueksy and @marcfbe or LinkedIn