관련자료: 1개의 글

코팅부분을 블로그에 올릴 때 유용한 온라인 프로그램 - Online syntax highlighter like TextMate

Posted by 일빵
2018. 5. 17. 14:04 관련자료/유용한 프로그램

"Online syntax highlighter like TextMate"는 코딩 부분을 보기 좋게 바꿔주는 프로그램입니다.

설치 없이 웹 상에서 바로 작업 가능합니다.


http://markup.su/highlighter


사용 방법은 소스코드 부분을 복사해서 붙여넣기 한 다음에 언어랑 스타일을 선택하면 html 코드하고 미리보기 창이 나타납니다.


 

블로그에 적용하기 위해서는 "HTML code" 부분을 복사 후 HTML 모드에서 붙여넣기 하거나

"Preview" 부분을 복사헤서 편집기에 붙여넣기 하면 됩니다.


<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:text="TextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textView"
        android:layout_marginStart="16dp"
        android:layout_marginTop="16dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginLeft="16dp"
        android:layout_marginEnd="16dp"
        app:layout_constraintRight_toRightOf="parent"
        android:layout_marginRight="16dp" />

</android.support.constraint.ConstraintLayout>