쓰기 CSS의 인기있는 방법은 지금과 같다 :이 쓸 지루한 얻을 수미친 정규식 : 추가 이전 CSS 선택기
#report-page aside.sidebar {
…
}
#report-page aside.sidebar li {
…
}
#report-page aside.sidebar li a {
…
. 반복되는 부분을 시도하고 자동화하려고합니다. (LESS와 같은 전 처리기는이 문제를 해결,하지만 난이 기존의 응용 프로그램에서 사용할 수 없습니다.)
Espresso.app은 동적 텍스트 조각을 삽입 할 수 있습니다
<!-- The matched suffix allows you to capture information about the text
preceding the insertion point. Specify a regular expression here. -->
<matched-suffix>(\s+)(is a vegetable)?</matched-suffix>
<!-- The transform-into element is a regex replacement expression, and can use
the captured strings from matched-suffix to generate a conditional snippet. -->
<transform-into>(?2:\1is a vegetable:\1is fantastic and)</transform-into>
당신이 날은 정규 표현식을 작성하는 데 도움 수 첫 번째 이전 중괄호 {
을 찾고 탭과 공백을 제외하고 그 행 앞에있는 것을 반환합니다.
SASS는 에스프레소의 자동 완성 및 구문 강조 표시를 사용합니다. 이것을 줄이기위한 에스프레소 확장은 급하게 작성되었습니다. –
대신 SCSS를 사용해 보셨습니까? – arnaud576875
예, 작동합니다. 그러나 어떻게 그것을 역전 시켜서 * 마지막 * 사건을 발견합니까? –