Use the diff code highlighting tag.
```diff
- foo
+ bar
Example:
| #!/bin/bash | |
| if [ ! -r "/usr/local/git" ]; then | |
| echo "Git doesn't appear to be installed via this installer. Aborting" | |
| exit 1 | |
| fi | |
| echo "This will uninstall git by removing /usr/local/git/**/*, /etc/paths.d/git, /etc/manpaths.d/git" | |
| printf "Type 'yes' if you sure you wish to continue: " | |
| read response | |
| if [ "$response" == "yes" ]; then | |
| sudo rm -rf /usr/local/git/ |
| public class ColoredSnackBar { | |
| private static final int red = 0xfff44336; | |
| private static final int green = 0xff4caf50; | |
| private static final int blue = 0xff2195f3; | |
| private static final int orange = 0xffffc107; | |
| private static View getSnackBarLayout(Snackbar snackbar) { | |
| if (snackbar != null) { |
| private class DatabaseHelper extends SQLiteOpenHelper { | |
| private static final int FIELD_TYPE_NULL = 0; | |
| private static final int FIELD_TYPE_INTEGER = 1; | |
| private static final int FIELD_TYPE_FLOAT = 2; | |
| private static final int FIELD_TYPE_STRING = 3; |
| #! /bin/bash | |
| # a shell script to make it easier to download images from google's | |
| # material design icons project. | |
| # | |
| # usage: | |
| # sh ~/material.sh -f ic_pause.png https://github.com/google/material-design-icons/blob/master/av/drawable-xxhdpi/ic_pause_white_24dp.png | |
| # by default, it outputs to app/src/main/res/drawable-* in the current | |
| # directory, but you can override with -o. | |
| # |
| adb shell "su -c 'chmod 777 /data/data/com.android.providers.telephony/databases/mmssms.db'" | |
| adb shell "su -c 'chmod 777 /data/data/com.android.providers.telephony/databases/telephony.db'" | |
| adb shell "su -c 'chmod 777 /data/data/com.android.providers.contacts/databases/profile.db'" | |
| adb shell "su -c 'chmod 777 /data/data/com.android.providers.contacts/databases/contacts2.db'" | |
| adb pull /data/data/com.android.providers.telephony/databases/mmssms.db /Users/fridondanelyan/Desktop/databases/mmssms.sqlite | |
| adb pull /data/data/com.android.providers.telephony/databases/telephony.db /Users/fridondanelyan/Desktop/databases/telephony.sqlite | |
| adb pull /data/data/com.android.providers.contacts/databases/profile.db /Users/fridondanelyan/Desktop/databases/profile.sqlite | |
| adb pull /data/data/com.android.providers.contacts/databases/contacts2.db /Users/fridondanelyan/Desktop/databases/contacts2.sqlite |
| import android.content.Context; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import uk.co.ribot.easyadapter.BaseEasyRecyclerAdapter; | |
| import uk.co.ribot.easyadapter.ItemViewHolder; | |
| public class BaseFilterableEasyRecyclerAdapter<T> extends BaseEasyRecyclerAdapter<T> | |
| { |