tiagohm / Codeview
Licence: mit
Android Code Highlighter
Stars: ✭ 204
Projects that are alternatives of or similar to Codeview
KeyLighter
Yet another syntax highlighter for PHP
Stars: ✭ 29 (-85.78%)
Mutual labels: syntax-highlighting, highlighter
KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (-70.59%)
Mutual labels: syntax-highlighting, highlighter
core
🌈 light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection
Stars: ✭ 40 (-80.39%)
Mutual labels: syntax-highlighting, highlighter
Spannabletextview
SpannableTextView is a custom TextView which lets you customize the styling of slice of your text or statment via Spannables, but without the hassle of having to deal directly with Spannable themselves.
Stars: ✭ 177 (-13.24%)
Mutual labels: view
React Native Popover View
A well-tested, adaptable, lightweight <Popover> component for react-native
Stars: ✭ 191 (-6.37%)
Mutual labels: view
Intellij Csv Validator
CSV validator, highlighter and formatter plugin for JetBrains Intellij IDEA, PyCharm, WebStorm, ...
Stars: ✭ 198 (-2.94%)
Mutual labels: highlighter
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (+904.41%)
Mutual labels: view
Prettyprint
Beautifully formatted output for your terminal 🌈
Stars: ✭ 195 (-4.41%)
Mutual labels: syntax-highlighting
Vscode Vlang
V Language extension for Visual Studio Code.
Stars: ✭ 190 (-6.86%)
Mutual labels: syntax-highlighting
Ngx Highlightjs
Angular syntax highlighting module
Stars: ✭ 187 (-8.33%)
Mutual labels: syntax-highlighting
Snappyrecyclerview
An extension to RecyclerView which will snap to child Views to the specified anchor, START, CENTER or END.
Stars: ✭ 178 (-12.75%)
Mutual labels: view
Highlight
Source code to formatted text converter
Stars: ✭ 191 (-6.37%)
Mutual labels: syntax-highlighting
Yii2 Minify View
Yii2 View component with minification css & js
Stars: ✭ 186 (-8.82%)
Mutual labels: view
Zerobranestudio
Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
Stars: ✭ 2,255 (+1005.39%)
Mutual labels: syntax-highlighting
Stepviewandroid
An Android library (Step View) written in kotlin to display steps (without any max-min limits) along with the status/description using a single view. It also supports some really cool features.
Stars: ✭ 191 (-6.37%)
Mutual labels: view
CodeView
Android Code Highlighter
Install
Add it in your root build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add the dependency:
compile 'com.github.tiagohm:CodeView:LATEST-VERSION
Features
- Powered by Highlight.js
- 176 languages and 79 styles
- Wrap Line
- Language Detection
- Zoom (Pinch gesture)
- Line Number
- Line Count
- Highlight current line (by click/tap)
- Highlight line
- Tap event of lines (get line number and your content)
Usage
Add view to your layout:
<br.tiagohm.codeview.CodeView
android:id="@+id/codeView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cv_font_size="14"
app:cv_highlight_line_number="36"
app:cv_show_line_number="true"
app:cv_start_line_number="0"
app:cv_wrap_line="true"
app:cv_zoom_enable="true">
</br.tiagohm.codeview.CodeView>
mCodeView = (CodeView)findViewById(R.id.codeView);
mCodeView.setOnHighlightListener(this)
.setOnHighlightListener(this)
.setTheme(Theme.AGATE)
.setCode(JAVA_CODE)
.setLanguage(Language.JAVA)
.setWrapLine(true)
.setFontSize(14)
.setZoomEnabled(true)
.setShowLineNumber(true)
.setStartLineNumber(9000)
.apply();
Other Methods
mCodeView.highlightLineNumber(10);
mCodeView.toggleLineNumber();
mCodeView.getLineCount();
Listeners:
//Interface
new CodeView.OnHighlightListener()
{
@Override
public void onStartCodeHighlight()
{
mProgressDialog = ProgressDialog.show(this, null, "Carregando...", true);
}
@Override
public void onFinishCodeHighlight()
{
if (mProgressDialog != null) {
mProgressDialog.dismiss();
}
}
@Override
public void onLanguageDetected(Language language, int relevance) {
Toast.makeText(this, "language: " + language + " relevance: " + relevance, Toast.LENGTH_SHORT).show();
}
@Override
public void onFontSizeChanged(int sizeInPx) {
Log.d("TAG", "font-size: " + sizeInPx + "px");
}
@Override
public void onLineClicked(int lineNumber, String content) {
Toast.makeText(this, "line: " + lineNumber + " html: " + content, Toast.LENGTH_SHORT).show();
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].